packages/apps/Taskbar
Revision | 2a6e4c9efe9b7db5dbeb611c2ac3849c5a2e858c (tree) |
---|---|
Time | 2018-08-13 07:30:50 |
Author | Braden Farmer <farmerbb@gmai...> |
Commiter | Braden Farmer |
Don't attempt to set activity launch bounds if freeform mode isn't enabled :)
@@ -388,10 +388,6 @@ public class U { | ||
388 | 388 | LocalBroadcastManager.getInstance(context).sendBroadcast(new Intent("com.farmerbb.taskbar.HIDE_START_MENU")); |
389 | 389 | } |
390 | 390 | |
391 | - private static Bundle launchStandard(Context context, ApplicationType type) { | |
392 | - return canEnableFreeform() ? getActivityOptions(context, type).toBundle() : null; | |
393 | - } | |
394 | - | |
395 | 391 | @SuppressWarnings("deprecation") |
396 | 392 | @TargetApi(Build.VERSION_CODES.N) |
397 | 393 | private static Bundle launchMode1(Context context, ApplicationType type) { |
@@ -954,14 +950,9 @@ public class U { | ||
954 | 950 | } |
955 | 951 | |
956 | 952 | private static Bundle getActivityOptionsBundle(Context context, ApplicationType type, String windowSize) { |
957 | - if(Build.VERSION.SDK_INT < Build.VERSION_CODES.N) | |
958 | - return null; | |
959 | - | |
960 | 953 | SharedPreferences pref = getSharedPreferences(context); |
961 | - if(!canEnableFreeform() | |
962 | - || !pref.getBoolean("freeform_hack", false) | |
963 | - || windowSize.equals("standard")) | |
964 | - return launchStandard(context, type); | |
954 | + if(!canEnableFreeform() || !pref.getBoolean("freeform_hack", false)) | |
955 | + return null; | |
965 | 956 | |
966 | 957 | switch(windowSize) { |
967 | 958 | case "large": |