Loop anim stickers test
This commit is contained in:
@@ -83,6 +83,11 @@ public class Preferences{
|
||||
return getBoolValue("authorsrecomm", false);
|
||||
}
|
||||
|
||||
public static int loopedanimstickers(int orig){
|
||||
if(!getBoolValue("authorsrecomm", true)) return 0;
|
||||
return orig;
|
||||
}
|
||||
|
||||
public static boolean captions(){
|
||||
return getBoolValue("captions", false);
|
||||
}
|
||||
|
||||
@@ -39,6 +39,10 @@
|
||||
android:key="systememoji"
|
||||
android:summary="@string/systememojisum"
|
||||
android:title="@string/systememoji" />
|
||||
<com.vtosters.lite.ui.MaterialSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="loopedanimstickers"
|
||||
android:title="Зацикливание анимированных стикеров" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="@string/vtlother">
|
||||
<com.vtosters.lite.ui.SummaryListPreference
|
||||
|
||||
@@ -418,6 +418,10 @@
|
||||
.line 17
|
||||
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->c:Lcom/airbnb/lottie/LottieDrawable;
|
||||
|
||||
invoke-static {v3}, Lru/vtosters/lite/utils/Preferences;->loopedanimstickers(I)I
|
||||
|
||||
move-result v3
|
||||
|
||||
invoke-virtual {v0, v3}, Lcom/airbnb/lottie/LottieDrawable;->d(I)V
|
||||
|
||||
.line 18
|
||||
@@ -984,6 +988,10 @@
|
||||
const/4 p1, 0x0
|
||||
|
||||
:goto_0
|
||||
invoke-static {p1}, Lru/vtosters/lite/utils/Preferences;->loopedanimstickers(I)I
|
||||
|
||||
move-result p1
|
||||
|
||||
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/LottieDrawable;->d(I)V
|
||||
|
||||
return-void
|
||||
@@ -2013,6 +2021,10 @@
|
||||
.line 1
|
||||
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->c:Lcom/airbnb/lottie/LottieDrawable;
|
||||
|
||||
invoke-static {p1}, Lru/vtosters/lite/utils/Preferences;->loopedanimstickers(I)I
|
||||
|
||||
move-result p1
|
||||
|
||||
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/LottieDrawable;->d(I)V
|
||||
|
||||
return-void
|
||||
|
||||
@@ -101,6 +101,10 @@
|
||||
.line 6
|
||||
iget-object p1, p0, Lcom/vk/stories/clickable/stickers/j/LottieAnimation;->b:Lcom/airbnb/lottie/LottieDrawable;
|
||||
|
||||
invoke-static {v0}, Lru/vtosters/lite/utils/Preferences;->loopedanimstickers(I)I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-virtual {p1, v0}, Lcom/airbnb/lottie/LottieDrawable;->d(I)V
|
||||
|
||||
.line 7
|
||||
|
||||
@@ -575,6 +575,10 @@
|
||||
|
||||
const/4 v0, -0x1
|
||||
|
||||
invoke-static {v0}, Lru/vtosters/lite/utils/Preferences;->loopedanimstickers(I)I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-virtual {p2, v0}, Lcom/airbnb/lottie/LottieDrawable;->d(I)V
|
||||
|
||||
.line 50
|
||||
|
||||
Reference in New Issue
Block a user