diff options
author | Amith Yamasani <yamasani@google.com> | 2012-09-27 14:50:13 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2012-09-27 14:50:13 -0700 |
commit | 8666b9e170c23a9595d611a49b7c8262e357ced1 (patch) | |
tree | 6b9dbad69bba1da1157477dc862e6146b6099eaf /src/com/android/settings/OwnerInfoSettings.java | |
parent | bfb5fa9ec37d58101febd13a334707f8f7e341f5 (diff) | |
download | packages_apps_settings-8666b9e170c23a9595d611a49b7c8262e357ced1.zip packages_apps_settings-8666b9e170c23a9595d611a49b7c8262e357ced1.tar.gz packages_apps_settings-8666b9e170c23a9595d611a49b7c8262e357ced1.tar.bz2 |
Rename "Owner info" to "User info" for secondary users
Bug: 7237781
Change-Id: I40207d6aa34bf3b7403f077fc7f3a945d739269d
Diffstat (limited to 'src/com/android/settings/OwnerInfoSettings.java')
-rw-r--r-- | src/com/android/settings/OwnerInfoSettings.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/settings/OwnerInfoSettings.java b/src/com/android/settings/OwnerInfoSettings.java index 77484e4..2d44921 100644 --- a/src/com/android/settings/OwnerInfoSettings.java +++ b/src/com/android/settings/OwnerInfoSettings.java @@ -19,6 +19,7 @@ package com.android.settings; import android.app.Fragment; import android.content.ContentResolver; import android.os.Bundle; +import android.os.UserHandle; import android.provider.Settings; import android.view.LayoutInflater; import android.view.View; @@ -51,6 +52,9 @@ public class OwnerInfoSettings extends Fragment { mEditText.setText(info); mEditText.setEnabled(enabled != 0); mCheckbox.setChecked(enabled != 0); + if (UserHandle.myUserId() != UserHandle.USER_OWNER) { + mCheckbox.setText(R.string.show_user_info_on_lockscreen_label); + } mCheckbox.setOnCheckedChangeListener(new OnCheckedChangeListener() { public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { Settings.Secure.putInt(res, Settings.Secure.LOCK_SCREEN_OWNER_INFO_ENABLED, |