From 48dd172b044c25cf72cce5e7323d5679f857723f Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 28 Feb 2019 19:41:38 +0200 Subject: [PATCH] fix profile list header arrow direction when editing mode is ended --- .../net/ktnx/mobileledger/ui/activity/MainActivity.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 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 95b35872..51ddf6e8 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 @@ -250,6 +250,7 @@ public class MainActivity extends CrashReportingActivity { profileListHeadCancel.setVisibility(View.VISIBLE); } else { + profileListHeadArrow.setRotation(180f); profileListHeadArrow.setVisibility(View.VISIBLE); profileListHeadCancel.setVisibility(View.GONE); profileListHeadMore.setVisibility(View.GONE); @@ -507,12 +508,13 @@ public class MainActivity extends CrashReportingActivity { } }); + mProfileListAdapter.stopEditingProfiles(); + profileListContainer.startAnimation(animation); + profileListHeadArrow.setRotation(0f); profileListHeadArrow .startAnimation(AnimationUtils.loadAnimation(this, R.anim.rotate_180_back)); profileListHeadMore.setVisibility(View.GONE); - - mProfileListAdapter.stopEditingProfiles(); } public void onProfileRowClicked(View v) { Data.setCurrentProfile((MobileLedgerProfile) v.getTag()); -- 2.39.5