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:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user