public class ActivityCollector { private static List<Activity> activities=new ArrayList<Activity>(); public static void addActivity(Activity activity){ activities.add(activity); } public static void removeActivity(Activity activity){ activities.remove(activity); } public static void finishALL(){ for(Activity activity:activities){ if(!activity.isFinishing()){ activity.finish(); } } } }
工具类ActivityCollector
最新推荐文章于 2022-06-06 10:02:26 发布