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 1509fd1..f934d4d 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));