mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-17 09:38:19 +00:00
Fix crashes below R
This commit is contained in:
@@ -194,7 +194,7 @@ public class QuickstepModelDelegate extends ModelDelegate implements OnIDPChange
|
||||
@WorkerThread
|
||||
private void recreatePredictors() {
|
||||
destroyPredictors();
|
||||
if (!mActive) {
|
||||
if (!Utilities.ATLEAST_Q || !mActive) {
|
||||
return;
|
||||
}
|
||||
Context context = mApp.getContext();
|
||||
@@ -203,7 +203,6 @@ public class QuickstepModelDelegate extends ModelDelegate implements OnIDPChange
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Utilities.ATLEAST_Q) return;
|
||||
int usagePerm = mApp.getContext().checkCallingOrSelfPermission(Manifest.permission.PACKAGE_USAGE_STATS);
|
||||
if (usagePerm != PackageManager.PERMISSION_GRANTED) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user