From 4ccb6fc377a998a39283e45d207cb488c624f34a Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 28 Feb 2019 09:05:59 +0200 Subject: [PATCH] use member field already available --- .../net/ktnx/mobileledger/ui/activity/MainActivity.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java index 3c9a6798..47dc798c 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java @@ -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); } -- 2.39.5