Update FCLApplication.java

This commit is contained in:
ShirosakiMio 2024-09-06 10:52:44 +08:00
parent fc65cad936
commit bc901558ef
1 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ public class FCLApplication extends Application implements Application.ActivityL
@Override
public void onActivityDestroyed(@NonNull Activity activity) {
if (currentActivity.get() == activity) {
if (currentActivity != null && currentActivity.get() == activity) {
currentActivity = null;
}
}