OSDN Git Service

Replace U.isOPreview() with BUILD.VERSION checks
[android-x86/packages-apps-Taskbar.git] / app / src / main / java / com / farmerbb / taskbar / service / DashboardService.java
index dbf12e2..eda82c4 100644 (file)
@@ -348,7 +348,7 @@ public class DashboardService extends Service {
             }
 
             if(inFreeformMode) {
-                if(intent != null && U.isOPreview())
+                if(intent != null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
                     intent.putExtra("context_menu_fix", true);
 
                 U.launchAppMaximized(this, intent);