Commit 1d0b32ee authored by YunanChen's avatar YunanChen

fix: BoostFlutterActivity获取activityInfo的lint错误

parent a70ee92e
package com.idlefish.flutterboost.containers; package com.idlefish.flutterboost.containers;
import android.annotation.SuppressLint;
import android.app.Activity; import android.app.Activity;
import androidx.lifecycle.Lifecycle; import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleOwner; import androidx.lifecycle.LifecycleOwner;
...@@ -186,6 +187,7 @@ public class BoostFlutterActivity extends Activity ...@@ -186,6 +187,7 @@ public class BoostFlutterActivity extends Activity
*/ */
@Nullable @Nullable
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
@SuppressLint("WrongConstant")
private Drawable getSplashScreenFromManifest() { private Drawable getSplashScreenFromManifest() {
try { try {
ActivityInfo activityInfo = getPackageManager().getActivityInfo( ActivityInfo activityInfo = getPackageManager().getActivityInfo(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment