]> git.ktnx.net Git - mobile-ledger.git/commitdiff
use member field already available
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 28 Feb 2019 07:05:59 +0000 (09:05 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 28 Feb 2019 07:05:59 +0000 (09:05 +0200)
app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java

index 3c9a6798a11110a034c4cb01a2af71bb4d21ff2b..47dc798cbd5a796b4308ab402ef4d87b1d049364 100644 (file)
@@ -241,15 +241,14 @@ 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()) {
-                    profilesArrow.clearAnimation();
-                    profilesArrow.setVisibility(View.GONE);
+                    profileListHeadArrow.clearAnimation();
+                    profileListHeadArrow.setVisibility(View.GONE);
 //                    findViewById(R.id.nav_profiles_arrow).setAlpha(0f);
                     findViewById(R.id.nav_profiles_cancel_edit).setVisibility(View.VISIBLE);
                 }
                 else {
-                    profilesArrow.setVisibility(View.VISIBLE);
+                    profileListHeadArrow.setVisibility(View.VISIBLE);
 //                    findViewById(R.id.nav_profiles_arrow).setAlpha(1f);
                     findViewById(R.id.nav_profiles_cancel_edit).setVisibility(View.GONE);
                 }