Merge "Use new color avatar assets" into jb-mr1-dev
BIN
res/drawable-hdpi/avatar_default_1.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
res/drawable-hdpi/avatar_default_2.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
res/drawable-hdpi/avatar_default_3.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
res/drawable-hdpi/avatar_default_4.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
res/drawable-hdpi/avatar_default_5.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
res/drawable-hdpi/avatar_default_6.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
res/drawable-hdpi/avatar_default_7.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
res/drawable-hdpi/avatar_default_8.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
res/drawable-hdpi/ic_settings_multiuser.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
res/drawable-mdpi/avatar_default_1.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
res/drawable-mdpi/avatar_default_2.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
res/drawable-mdpi/avatar_default_3.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
res/drawable-mdpi/avatar_default_4.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
res/drawable-mdpi/avatar_default_5.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
res/drawable-mdpi/avatar_default_6.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
res/drawable-mdpi/avatar_default_7.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
res/drawable-mdpi/avatar_default_8.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
res/drawable-mdpi/ic_settings_multiuser.png
Normal file
After Width: | Height: | Size: 911 B |
BIN
res/drawable-xhdpi/avatar_default_1.png
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
res/drawable-xhdpi/avatar_default_2.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
res/drawable-xhdpi/avatar_default_3.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
res/drawable-xhdpi/avatar_default_4.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
res/drawable-xhdpi/avatar_default_5.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
res/drawable-xhdpi/avatar_default_6.png
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
res/drawable-xhdpi/avatar_default_7.png
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
res/drawable-xhdpi/avatar_default_8.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
res/drawable-xhdpi/ic_settings_multiuser.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 4.8 KiB |
@@ -100,7 +100,7 @@
|
|||||||
<!-- Manage users -->
|
<!-- Manage users -->
|
||||||
<header
|
<header
|
||||||
android:fragment="com.android.settings.users.UserSettings"
|
android:fragment="com.android.settings.users.UserSettings"
|
||||||
android:icon="@drawable/ic_settings_sync"
|
android:icon="@drawable/ic_settings_multiuser"
|
||||||
android:title="@string/user_settings_title"
|
android:title="@string/user_settings_title"
|
||||||
android:id="@+id/user_settings" />
|
android:id="@+id/user_settings" />
|
||||||
|
|
||||||
|
@@ -91,12 +91,14 @@ public class UserSettings extends SettingsPreferenceFragment
|
|||||||
"key_add_user_long_message_displayed";
|
"key_add_user_long_message_displayed";
|
||||||
|
|
||||||
private static final int[] USER_DRAWABLES = {
|
private static final int[] USER_DRAWABLES = {
|
||||||
R.drawable.ic_user_orange,
|
R.drawable.avatar_default_1,
|
||||||
R.drawable.ic_user_cyan,
|
R.drawable.avatar_default_2,
|
||||||
R.drawable.ic_user_green,
|
R.drawable.avatar_default_3,
|
||||||
R.drawable.ic_user_purple,
|
R.drawable.avatar_default_4,
|
||||||
R.drawable.ic_user_red,
|
R.drawable.avatar_default_5,
|
||||||
R.drawable.ic_user_yellow
|
R.drawable.avatar_default_6,
|
||||||
|
R.drawable.avatar_default_7,
|
||||||
|
R.drawable.avatar_default_8
|
||||||
};
|
};
|
||||||
|
|
||||||
private PreferenceGroup mUserListCategory;
|
private PreferenceGroup mUserListCategory;
|
||||||
@@ -450,7 +452,7 @@ public class UserSettings extends SettingsPreferenceFragment
|
|||||||
if (user.iconPath != null) {
|
if (user.iconPath != null) {
|
||||||
if (mUserIcons.get(user.id) == null) {
|
if (mUserIcons.get(user.id) == null) {
|
||||||
missingIcons.add(user.id);
|
missingIcons.add(user.id);
|
||||||
pref.setIcon(R.drawable.ic_user);
|
pref.setIcon(R.drawable.avatar_default_1);
|
||||||
} else {
|
} else {
|
||||||
setPhotoId(pref, user);
|
setPhotoId(pref, user);
|
||||||
}
|
}
|
||||||
@@ -463,7 +465,7 @@ public class UserSettings extends SettingsPreferenceFragment
|
|||||||
pref.setEnabled(false);
|
pref.setEnabled(false);
|
||||||
pref.setTitle(R.string.user_new_user_name);
|
pref.setTitle(R.string.user_new_user_name);
|
||||||
pref.setSummary(R.string.user_adding_new_user);
|
pref.setSummary(R.string.user_adding_new_user);
|
||||||
pref.setIcon(R.drawable.ic_user);
|
pref.setIcon(R.drawable.avatar_default_1);
|
||||||
mUserListCategory.addPreference(pref);
|
mUserListCategory.addPreference(pref);
|
||||||
}
|
}
|
||||||
getActivity().invalidateOptionsMenu();
|
getActivity().invalidateOptionsMenu();
|
||||||
|