]> git.ktnx.net Git - mobile-ledger.git/commitdiff
fix profile list collapse icon staying visible when editing mode is enabled
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 28 Feb 2019 06:09:57 +0000 (08:09 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 28 Feb 2019 06:09:57 +0000 (08:09 +0200)
app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java

index 3c50331e52c06366e3328c8d13e00376b6a35f19..3c9a6798a11110a034c4cb01a2af71bb4d21ff2b 100644 (file)
@@ -241,14 +241,16 @@ public class MainActivity extends CrashReportingActivity {
         mProfileListAdapter.addEditingProfilesObserver(new Observer() {
             @Override
             public void update(Observable o, Object arg) {
+                final View profilesArrow = findViewById(R.id.nav_profiles_arrow);
                 if (mProfileListAdapter.isEditingProfiles()) {
-                    findViewById(R.id.nav_profiles_arrow).setVisibility(View.GONE);
-                    findViewById(R.id.nav_profiles_arrow).setAlpha(0f);
+                    profilesArrow.clearAnimation();
+                    profilesArrow.setVisibility(View.GONE);
+//                    findViewById(R.id.nav_profiles_arrow).setAlpha(0f);
                     findViewById(R.id.nav_profiles_cancel_edit).setVisibility(View.VISIBLE);
                 }
                 else {
-                    findViewById(R.id.nav_profiles_arrow).setVisibility(View.VISIBLE);
-                    findViewById(R.id.nav_profiles_arrow).setAlpha(1f);
+                    profilesArrow.setVisibility(View.VISIBLE);
+//                    findViewById(R.id.nav_profiles_arrow).setAlpha(1f);
                     findViewById(R.id.nav_profiles_cancel_edit).setVisibility(View.GONE);
                 }
             }