summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/deviceinfo/PublicVolumeSettings.java')
-rw-r--r--src/com/android/settings/deviceinfo/PublicVolumeSettings.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/settings/deviceinfo/PublicVolumeSettings.java b/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
index 4c77d21..c9b4beb 100644
--- a/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
+++ b/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
@@ -16,6 +16,7 @@
package com.android.settings.deviceinfo;
+import android.app.ActivityManager;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
@@ -81,7 +82,8 @@ public class PublicVolumeSettings extends SettingsPreferenceFragment {
final Context context = getActivity();
- mIsPermittedToAdopt = UserManager.get(context).isAdminUser();
+ mIsPermittedToAdopt = UserManager.get(context).isAdminUser()
+ && !ActivityManager.isUserAMonkey();
mStorageManager = context.getSystemService(StorageManager.class);