mirror of
https://github.com/gitnex-org/gitnex.git
synced 2026-07-17 02:13:37 -05:00
Set default value and add selectable background for switch
This commit is contained in:
@@ -192,7 +192,7 @@ public class ExploreIssuesAdapter extends RecyclerView.Adapter<RecyclerView.View
|
||||
|
||||
if(issue.getLabels() != null) {
|
||||
|
||||
if(!tinyDb.getBoolean("showLabelsInList")) { // default
|
||||
if(!tinyDb.getBoolean("showLabelsInList", false)) { // default
|
||||
|
||||
labelsScrollViewWithText.setVisibility(View.GONE);
|
||||
labelsScrollViewDots.setVisibility(View.VISIBLE);
|
||||
|
||||
@@ -178,7 +178,7 @@ public class IssuesAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
||||
|
||||
if(issue.getLabels() != null) {
|
||||
|
||||
if(!tinyDb.getBoolean("showLabelsInList")) { // default
|
||||
if(!tinyDb.getBoolean("showLabelsInList", false)) { // default
|
||||
|
||||
labelsScrollViewWithText.setVisibility(View.GONE);
|
||||
labelsScrollViewDots.setVisibility(View.VISIBLE);
|
||||
|
||||
@@ -169,7 +169,7 @@ public class PullRequestsAdapter extends RecyclerView.Adapter<RecyclerView.ViewH
|
||||
|
||||
if(pullRequest.getLabels() != null) {
|
||||
|
||||
if(!tinyDb.getBoolean("showLabelsInList")) { // default
|
||||
if(!tinyDb.getBoolean("showLabelsInList", false)) { // default
|
||||
|
||||
labelsScrollViewWithText.setVisibility(View.GONE);
|
||||
labelsScrollViewDots.setVisibility(View.VISIBLE);
|
||||
|
||||
@@ -250,6 +250,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="10dp">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user