Some animation fixes

This commit is contained in:
gdlbo
2022-07-11 02:58:43 +03:00
parent b85aece87b
commit 1410aaf7ef
2 changed files with 11 additions and 4 deletions
@@ -2,6 +2,7 @@ package ru.vtosters.lite.utils;
import static ru.vtosters.lite.utils.Globals.getIdentifier;
import static ru.vtosters.lite.utils.Globals.getPrefsValue;
import static ru.vtosters.lite.utils.Globals.sendToast;
import android.content.res.Resources;
@@ -31,8 +32,10 @@ public class FragAnimationKit{
private static final int SSTactCloseEnter = resources.getIdentifier("task_close_enter", "anim", "android");
private static final int SSTactCloseExit = resources.getIdentifier("task_close_exit", "anim", "android");
public static void animateOpen(FragmentTransaction transaction){
public static boolean animateOpen(FragmentTransaction transaction){
setAnimations(transaction);
return getPrefsValue("anim_rtrn_type").equals("noanim") || getPrefsValue("anim_rtrn_type").isEmpty();
}
public static void animateClose(FragmentTransaction transaction){