Initialize intent to avoid nullpointer exception

Fix: 203586231
Test: Manually flashed, installed two apps that can handle USB devices, verified dialog opens as expected.
Change-Id: I146301c24ca161d5f5ae68f9943120c8fa137a29
This commit is contained in:
Philip Junker
2021-10-21 11:41:44 +02:00
parent 570f3b1834
commit 0d8663daa0

View File

@@ -112,6 +112,7 @@ public class UsbResolverActivity extends ResolverActivity {
mOtherProfileIntent.putParcelableArrayListExtra(EXTRA_RESOLVE_INFOS,
rListOtherProfile);
} else {
mOtherProfileIntent = new Intent();
mOtherProfileIntent.setComponent(ComponentName.unflattenFromString(
this.getResources().getString(
com.android.internal.R.string.config_usbConfirmActivity)));