List<Activity> lists的关闭finish()
public class App extends Application {
private static List<Activity> lists = new ArrayList<>();
public static void addActivity(Activity activity) {
lists.add(activity);
}
public static void clearActivity() {
if (lists != null) {
for (Activity activity : lists) {
activity.finish();
}
lists.clear();
}
}
}