]> git.ktnx.net Git - mobile-ledger.git/commitdiff
do not dim non-current profiles
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 3 Mar 2019 14:25:22 +0000 (16:25 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 3 Mar 2019 14:25:22 +0000 (16:25 +0200)
the current one is already accented with a background

app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java
app/src/main/res/layout/profile_list_content.xml

index a96517c28a0419893f7571425e130c4ba58b4de8..9f2c48a246e253edc70a527435c3963c2e47b9b0 100644 (file)
@@ -146,7 +146,6 @@ public class ProfilesRecyclerViewAdapter
             MobileLedgerProfile myProfile = (MobileLedgerProfile) holder.itemView.getTag();
             final MobileLedgerProfile currentProfile = Data.profile.get();
             final boolean sameProfile = currentProfile.equals(myProfile);
-            view.setAlpha(sameProfile ? 1 : 0.5f);
         });
 
         View.OnTouchListener dragStarter = (v, event) -> {
@@ -179,7 +178,6 @@ public class ProfilesRecyclerViewAdapter
         holder.mEditButton.setOnClickListener(mOnClickListener);
 
         final boolean sameProfile = currentProfile.equals(profile);
-        holder.itemView.setAlpha(sameProfile ? 1 : 0.5f);
         holder.itemView
                 .setBackground(sameProfile ? new ColorDrawable(Colors.tableRowDarkBG) : null);
         if (editingProfiles.get()) {
index 6f09955a468cb6b8b31f3d0494dc598bec9cf978..19b77e5d06ebcc7fad873c82bc9fda66cbf11b4e 100644 (file)
@@ -20,7 +20,6 @@
     xmlns:app="http://schemas.android.com/apk/res-auto"
     xmlns:tools="http://schemas.android.com/tools"
     android:id="@+id/profile_list_item"
-    android:alpha="0.50"
     android:animateLayoutChanges="true"
     android:layout_width="match_parent"
     android:layout_height="@dimen/thumb_row_height"