Merge "Settings: don't try to allow NLSes with too-long component names" into udc-dev am: 4d34eb2c7a
am: 143d105dc9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/23726247 Change-Id: I71f428e90b132c4282827b698623ee1d43c0f7c1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -87,7 +87,9 @@ public class NotificationAccessConfirmationActivity extends Activity
|
||||
mUserId = getIntent().getIntExtra(EXTRA_USER_ID, UserHandle.USER_NULL);
|
||||
CharSequence mAppLabel;
|
||||
|
||||
if (mComponentName == null || mComponentName.getPackageName() == null) {
|
||||
if (mComponentName == null || mComponentName.getPackageName() == null
|
||||
|| mComponentName.flattenToString().length()
|
||||
> NotificationManager.MAX_SERVICE_COMPONENT_NAME_LENGTH) {
|
||||
finish();
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user