hotfix: Do not access cross-profile interaction APIs below R

This commit is contained in:
Peter Cai 2023-12-06 15:46:28 -05:00
parent 401cc49ac5
commit 3f71a44617
2 changed files with 9 additions and 2 deletions

View file

@ -1,5 +1,10 @@
1.9.1 (445)
===
- Hotfix crashes below Android 11.
1.9
==
===
- Updated targetSDK to 34 (Android 14) with compatibility fixes.
- More reliable delayed freezing using AlarmManager (thanks parmaster84).

View file

@ -211,7 +211,9 @@ public class AppListFragment extends BaseFragment {
// Update the cross-profile packages / widget providers list
try {
mCrossProfileWidgetProviders.addAll(mService.getCrossProfileWidgetProviders());
mCrossProfilePackages.addAll(mService.getCrossProfilePackages());
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R)
mCrossProfilePackages.addAll(mService.getCrossProfilePackages());
} catch (RemoteException ignored) {
}