From: Damyan Ivanov Date: Thu, 28 Feb 2019 17:41:38 +0000 (+0200) Subject: fix profile list header arrow direction when editing mode is ended X-Git-Tag: v0.7~32 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=48dd172b044c25cf72cce5e7323d5679f857723f;p=mobile-ledger.git fix profile list header arrow direction when editing mode is ended --- 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());