Fix crash on AppInfoDashboardFragment
When AppInfoDashboardFragment launch a new page, it sets SUB_INFO_FRAGMENT(1) as request code. This request code is same as REQUEST_REMOVE_DEVICE_ADMIN(1). So, when AppInfoDashboardFragment got onActivityResult callback, it will handle the event about REQUEST_REMOVE_DEVICE_ADMIN. So, we change REQUEST_REMOVE_DEVICE_ADMIN to a unique value. Test: manual test, robotest Fixes: 118841475 Change-Id: Idabd62c5062ccfbf4b8acee82df7401fc9ce7484
This commit is contained in:
@@ -88,7 +88,7 @@ public class AppInfoDashboardFragment extends DashboardFragment
|
|||||||
// Result code identifiers
|
// Result code identifiers
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
static final int REQUEST_UNINSTALL = 0;
|
static final int REQUEST_UNINSTALL = 0;
|
||||||
private static final int REQUEST_REMOVE_DEVICE_ADMIN = 1;
|
private static final int REQUEST_REMOVE_DEVICE_ADMIN = 5;
|
||||||
|
|
||||||
static final int SUB_INFO_FRAGMENT = 1;
|
static final int SUB_INFO_FRAGMENT = 1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user