Android7及7以下默认关闭动画特效

This commit is contained in:
18401019693
2023-02-27 18:14:44 +08:00
parent e7c97f2b55
commit 16ba71493e
2 changed files with 5 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ package com.yunbao.common.manager;
import android.app.Activity;
import android.content.Context;
import android.os.Build;
import android.os.Handler;
import android.text.TextUtils;
@@ -276,11 +277,12 @@ public class IMLoginManager extends BaseCacheManager {
}
public boolean isMountEffect() {
return getBoolean(MountEffect, true);
return getBoolean(MountEffect, !(Build.VERSION.SDK_INT < Build.VERSION_CODES.O));
}
public boolean isGiftEffect() {
return getBoolean(GiftEffect, true);
return getBoolean(GiftEffect, !(Build.VERSION.SDK_INT < Build.VERSION_CODES.O));
}
/**