Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

packages-apps-Taskbar: Commit

packages/apps/Taskbar


Commit MetaInfo

Revision2a6e4c9efe9b7db5dbeb611c2ac3849c5a2e858c (tree)
Time2018-08-13 07:30:50
AuthorBraden Farmer <farmerbb@gmai...>
CommiterBraden Farmer

Log Message

Don't attempt to set activity launch bounds if freeform mode isn't enabled :)

Change Summary

Incremental Difference

--- a/app/src/main/java/com/farmerbb/taskbar/util/U.java
+++ b/app/src/main/java/com/farmerbb/taskbar/util/U.java
@@ -388,10 +388,6 @@ public class U {
388388 LocalBroadcastManager.getInstance(context).sendBroadcast(new Intent("com.farmerbb.taskbar.HIDE_START_MENU"));
389389 }
390390
391- private static Bundle launchStandard(Context context, ApplicationType type) {
392- return canEnableFreeform() ? getActivityOptions(context, type).toBundle() : null;
393- }
394-
395391 @SuppressWarnings("deprecation")
396392 @TargetApi(Build.VERSION_CODES.N)
397393 private static Bundle launchMode1(Context context, ApplicationType type) {
@@ -954,14 +950,9 @@ public class U {
954950 }
955951
956952 private static Bundle getActivityOptionsBundle(Context context, ApplicationType type, String windowSize) {
957- if(Build.VERSION.SDK_INT < Build.VERSION_CODES.N)
958- return null;
959-
960953 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;
965956
966957 switch(windowSize) {
967958 case "large":
Show on old repository browser