Fix settings crash on noti listener screen

Test: manual
Bug: 114417814
Change-Id: I053a62201d3e9a1066d16d4a494a0c13bebccaf7
This commit is contained in:
Julia Reynolds
2018-09-07 13:27:08 -04:00
parent d4764c8042
commit e4fe56e161

View File

@@ -117,7 +117,7 @@ public abstract class ManagedServiceSettings extends EmptyTextSettings {
CharSequence title = null; CharSequence title = null;
try { try {
title = mPm.getApplicationInfoAsUser( title = mPm.getApplicationInfoAsUser(
service.packageName, 0, getCurrentUser(managedProfileId)).loadLabel(mPm); service.packageName, 0, UserHandle.myUserId()).loadLabel(mPm);
} catch (PackageManager.NameNotFoundException e) { } catch (PackageManager.NameNotFoundException e) {
// unlikely, as we are iterating over live services. // unlikely, as we are iterating over live services.
Log.e(TAG, "can't find package name", e); Log.e(TAG, "can't find package name", e);