From: Damyan Ivanov Date: Thu, 14 Mar 2019 20:52:44 +0000 (+0200) Subject: reset rotation angle before animating rotation X-Git-Tag: v0.8~13 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=9b34f9a629ae2729e2ae4bb6e271811fd6173ac6;p=mobile-ledger.git reset rotation angle before animating rotation --- 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 87774073..f446e1ab 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 @@ -571,6 +571,7 @@ public class MainActivity extends ProfileThemedActivity { if (wasExpanded) { Log.d("accounts", String.format("Collapsing account '%s'", acc.getName())); + view.setRotation(0); animator.rotationBy(180); // removing all child accounts from the view @@ -604,6 +605,7 @@ public class MainActivity extends ProfileThemedActivity { } else { Log.d("accounts", String.format("Expanding account '%s'", acc.getName())); + view.setRotation(180); animator.rotationBy(-180); ArrayList accounts = Data.accounts.get(); List children = Data.profile.get().loadVisibleChildAccountsOf(acc);