Drop min sdk to 26
This commit is contained in:
@@ -7,7 +7,7 @@ android {
|
||||
compileSdk 31
|
||||
|
||||
defaultConfig {
|
||||
minSdk 28
|
||||
minSdk 26
|
||||
targetSdk 31
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
@@ -7,7 +7,7 @@ android {
|
||||
compileSdk 30
|
||||
|
||||
defaultConfig {
|
||||
minSdk 28
|
||||
minSdk 26
|
||||
targetSdk 31
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
@@ -7,7 +7,7 @@ android {
|
||||
compileSdk 31
|
||||
|
||||
defaultConfig {
|
||||
minSdk 28
|
||||
minSdk 26
|
||||
targetSdk 31
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
@@ -6,7 +6,7 @@ android {
|
||||
buildToolsVersion BUILD_TOOLS_VERSION
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 28
|
||||
minSdkVersion 26
|
||||
targetSdkVersion 28
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
|
||||
@@ -29,6 +29,10 @@ public class ThreadedRendererCompat {
|
||||
public static int EGL_CONTEXT_PRIORITY_LOW_IMG = 0x3103;
|
||||
|
||||
public static void setContextPriority(int priority) {
|
||||
ThreadedRenderer.setContextPriority(priority);
|
||||
try {
|
||||
ThreadedRenderer.setContextPriority(priority);
|
||||
} catch (Throwable e) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -165,7 +165,7 @@ android {
|
||||
withQuickstep {
|
||||
dimension "recents"
|
||||
|
||||
minSdkVersion 28
|
||||
minSdkVersion 26
|
||||
}
|
||||
|
||||
withoutQuickstep {
|
||||
|
||||
@@ -116,7 +116,7 @@ public final class Utilities {
|
||||
private static final Matrix sInverseMatrix = new Matrix();
|
||||
|
||||
public static final String[] EMPTY_STRING_ARRAY = new String[0];
|
||||
public static final Person[] EMPTY_PERSON_ARRAY = new Person[0];
|
||||
public static final Person[] EMPTY_PERSON_ARRAY = (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) ? new Person[0] : null;
|
||||
|
||||
public static final boolean ATLEAST_O = Build.VERSION.SDK_INT >= Build.VERSION_CODES.O;
|
||||
|
||||
|
||||
@@ -173,9 +173,11 @@ public class WorkspaceItemInfo extends ItemInfoWithIcon {
|
||||
}
|
||||
disabledMessage = shortcutInfo.getDisabledMessage();
|
||||
|
||||
Person[] persons = ApiWrapper.getPersons(shortcutInfo);
|
||||
personKeys = persons.length == 0 ? Utilities.EMPTY_STRING_ARRAY
|
||||
: Arrays.stream(persons).map(Person::getKey).sorted().toArray(String[]::new);
|
||||
if (Utilities.ATLEAST_Q) {
|
||||
Person[] persons = ApiWrapper.getPersons(shortcutInfo);
|
||||
personKeys = persons.length == 0 ? Utilities.EMPTY_STRING_ARRAY
|
||||
: Arrays.stream(persons).map(Person::getKey).sorted().toArray(String[]::new);
|
||||
}
|
||||
}
|
||||
|
||||
/** Returns the WorkspaceItemInfo id associated with the deep shortcut. */
|
||||
|
||||
Reference in New Issue
Block a user