From 9b34f9a629ae2729e2ae4bb6e271811fd6173ac6 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 14 Mar 2019 22:52:44 +0200 Subject: [PATCH] reset rotation angle before animating rotation --- .../java/net/ktnx/mobileledger/ui/activity/MainActivity.java | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.2