From 541deb95e67eac219de586058419bb89cd6134a1 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 28 Feb 2019 08:09:57 +0200 Subject: [PATCH] fix profile list collapse icon staying visible when editing mode is enabled --- .../ktnx/mobileledger/ui/activity/MainActivity.java | 10 ++++++---- 1 file changed, 6 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 3c50331e..3c9a6798 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,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); } } -- 2.39.5