use of com.farmerbb.taskbar.helper.DisplayHelper in project Taskbar by farmerbb.
the class U method displayDefaultsToFreeform.
private static boolean displayDefaultsToFreeform(Context context, Display display) {
DisplayHelper helper = DisplayHelper.getInstance();
int id = display.getDisplayId();
if (helper.get(id))
return true;
Context dispContext = context.createDisplayContext(display);
String configString = dispContext.getResources().getConfiguration().toString();
boolean value = configString.contains("mDisplayWindowingMode=freeform");
if (value)
helper.put(id);
return value;
}
Aggregations