]> git.ktnx.net Git - mobile-ledger.git/commitdiff
profile list: don't hide the collapse arrow when editting is enabled
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 19 Apr 2019 20:37:10 +0000 (23:37 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 19 Apr 2019 20:56:44 +0000 (23:56 +0300)
clicking on the 'Profiles' row still collapses the list, so the missing
arrow is just confusing

app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java

index 1509fd17df53b21eb0aaf279b1cd25db9a116b14..f934d4d69de330432d019619c722940516bd2ac9 100644 (file)
@@ -264,8 +264,6 @@ public class MainActivity extends ProfileThemedActivity {
         if (editingProfilesObserver == null) {
             editingProfilesObserver = (o, arg) -> {
                 if (mProfileListAdapter.isEditingProfiles()) {
-                    profileListHeadArrow.clearAnimation();
-                    profileListHeadArrow.setVisibility(View.GONE);
                     profileListHeadMore.setVisibility(View.GONE);
                     profileListHeadMore
                             .startAnimation(AnimationUtils.loadAnimation(this, R.anim.fade_out));
@@ -274,8 +272,6 @@ public class MainActivity extends ProfileThemedActivity {
                             .startAnimation(AnimationUtils.loadAnimation(this, R.anim.fade_in));
                 }
                 else {
-                    profileListHeadArrow.setRotation(180f);
-                    profileListHeadArrow.setVisibility(View.VISIBLE);
                     profileListHeadCancel.setVisibility(View.GONE);
                     profileListHeadCancel
                             .startAnimation(AnimationUtils.loadAnimation(this, R.anim.fade_out));