mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Merge "Removing explicit target SDK for launcher" into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d5b3a0a099
@@ -24,6 +24,7 @@ import static com.android.launcher3.util.SplitConfigurationOptions.STAGE_TYPE_MA
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.app.ActivityManager;
|
||||
import android.app.ActivityOptions;
|
||||
import android.app.Person;
|
||||
import android.app.WallpaperManager;
|
||||
import android.content.Context;
|
||||
@@ -560,6 +561,17 @@ public final class Utilities {
|
||||
handler.sendMessage(msg);
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility method to allow background activity launch for the provided activity options
|
||||
*/
|
||||
public static ActivityOptions allowBGLaunch(ActivityOptions options) {
|
||||
if (ATLEAST_U) {
|
||||
options.setPendingIntentBackgroundActivityStartMode(
|
||||
ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED);
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the full drawable for info without any flattening or pre-processing.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user