From 16d41d3df2c2405c9f716675841c53c41fbf8400 Mon Sep 17 00:00:00 2001 From: cyberta Date: Tue, 6 Dec 2022 04:07:50 +0100 Subject: repeat connecting animation, fade out before restarting --- app/src/custom/res/animator/alpha4.xml | 10 ++++++++++ app/src/custom/res/drawable-anydpi-v24/ravens.xml | 8 +++++--- app/src/custom/res/drawable-anydpi-v24/state_connecting.xml | 3 +++ .../java/se/leap/bitmaskclient/base/fragments/EipFragment.java | 2 ++ 4 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 app/src/custom/res/animator/alpha4.xml (limited to 'app/src') diff --git a/app/src/custom/res/animator/alpha4.xml b/app/src/custom/res/animator/alpha4.xml new file mode 100644 index 00000000..75dc9c78 --- /dev/null +++ b/app/src/custom/res/animator/alpha4.xml @@ -0,0 +1,10 @@ + + + + + diff --git a/app/src/custom/res/drawable-anydpi-v24/ravens.xml b/app/src/custom/res/drawable-anydpi-v24/ravens.xml index 788aef84..a4c3023d 100644 --- a/app/src/custom/res/drawable-anydpi-v24/ravens.xml +++ b/app/src/custom/res/drawable-anydpi-v24/ravens.xml @@ -2,6 +2,8 @@ android:viewportWidth="342" android:viewportHeight="206" android:width="342dp" + android:name="ravens" + android:alpha="1" android:height="206dp"> + android:fillColor="#00000000" /> + android:fillColor="#00000000" /> + android:fillColor="#00000000" /> \ No newline at end of file diff --git a/app/src/custom/res/drawable-anydpi-v24/state_connecting.xml b/app/src/custom/res/drawable-anydpi-v24/state_connecting.xml index 267ba791..77207966 100644 --- a/app/src/custom/res/drawable-anydpi-v24/state_connecting.xml +++ b/app/src/custom/res/drawable-anydpi-v24/state_connecting.xml @@ -2,6 +2,9 @@ + diff --git a/app/src/main/java/se/leap/bitmaskclient/base/fragments/EipFragment.java b/app/src/main/java/se/leap/bitmaskclient/base/fragments/EipFragment.java index d63d9c72..69e3aca1 100644 --- a/app/src/main/java/se/leap/bitmaskclient/base/fragments/EipFragment.java +++ b/app/src/main/java/se/leap/bitmaskclient/base/fragments/EipFragment.java @@ -599,6 +599,8 @@ public class EipFragment extends Fragment implements Observer { int newAnimationRes = pendingAnimationState; pendingAnimationState = 0; animateState(newAnimationRes); + } else if (drawable instanceof Animatable){ + ((Animatable) drawable).start(); } } }); -- cgit v1.2.3