Merge RQ3A.210705.001 to aosp-master - DO NOT MERGE
Merged-In: Ie37d07ed9cbce12b9dcd39b332ed2ae66f3edf6c Merged-In: I777bae14ea865ecf1607e1d660fe3102a9b8fa6d Merged-In: I777bae14ea865ecf1607e1d660fe3102a9b8fa6d Change-Id: I0f793ed1ea64127903c6dc906c5afa1db15fff48
This commit is contained in:
@@ -102,7 +102,7 @@ public class DeviceAdminAdd extends Activity {
|
||||
DevicePolicyManager mDPM;
|
||||
AppOpsManager mAppOps;
|
||||
DeviceAdminInfo mDeviceAdmin;
|
||||
CharSequence mAddMsgText;
|
||||
String mAddMsgText;
|
||||
String mProfileOwnerName;
|
||||
|
||||
ImageView mAdminIcon;
|
||||
@@ -274,7 +274,11 @@ public class DeviceAdminAdd extends Activity {
|
||||
}
|
||||
}
|
||||
|
||||
mAddMsgText = getIntent().getCharSequenceExtra(DevicePolicyManager.EXTRA_ADD_EXPLANATION);
|
||||
final CharSequence addMsgCharSequence = getIntent().getCharSequenceExtra(
|
||||
DevicePolicyManager.EXTRA_ADD_EXPLANATION);
|
||||
if (addMsgCharSequence != null) {
|
||||
mAddMsgText = addMsgCharSequence.toString();
|
||||
}
|
||||
|
||||
if (mAddingProfileOwner) {
|
||||
// If we're trying to add a profile owner and user setup hasn't completed yet, no
|
||||
@@ -628,7 +632,7 @@ public class DeviceAdminAdd extends Activity {
|
||||
} catch (Resources.NotFoundException e) {
|
||||
mAdminDescription.setVisibility(View.GONE);
|
||||
}
|
||||
if (mAddMsgText != null) {
|
||||
if (!TextUtils.isEmpty(mAddMsgText)) {
|
||||
mAddMsg.setText(mAddMsgText);
|
||||
mAddMsg.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user