diff options
author | Peter Ng <petergng@google.com> | 2011-08-29 21:08:57 -0700 |
---|---|---|
committer | Peter Ng <petergng@google.com> | 2011-08-30 10:45:56 -0700 |
commit | a1252ccf7b31d01a9612fc0479dc7a632cabf8a7 (patch) | |
tree | 18345d6552e51939cc53d873716726d194fe9146 /src/com/android/settings/widget | |
parent | 427a7ba1048d81b6b4fdcf29072c7584f6c18b87 (diff) | |
download | packages_apps_Settings-a1252ccf7b31d01a9612fc0479dc7a632cabf8a7.zip packages_apps_Settings-a1252ccf7b31d01a9612fc0479dc7a632cabf8a7.tar.gz packages_apps_Settings-a1252ccf7b31d01a9612fc0479dc7a632cabf8a7.tar.bz2 |
Power control widget holofied
-brightness needs to implement brightness_half_holo state
*fixed now in the patch { old assets should be removed also(any "appwidget" that doesn't have holo in it)}
Change-Id: I2c1e754f68cf321c5b3517ba92c8f235b418e696
Diffstat (limited to 'src/com/android/settings/widget')
-rw-r--r-- | src/com/android/settings/widget/SettingsAppWidgetProvider.java | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/com/android/settings/widget/SettingsAppWidgetProvider.java b/src/com/android/settings/widget/SettingsAppWidgetProvider.java index 8df009c..656bf47 100644 --- a/src/com/android/settings/widget/SettingsAppWidgetProvider.java +++ b/src/com/android/settings/widget/SettingsAppWidgetProvider.java @@ -77,21 +77,21 @@ public class SettingsAppWidgetProvider extends AppWidgetProvider { private static final int POS_RIGHT = 2; private static final int[] IND_DRAWABLE_OFF = { - R.drawable.appwidget_settings_ind_off_l, - R.drawable.appwidget_settings_ind_off_c, - R.drawable.appwidget_settings_ind_off_r + R.drawable.appwidget_settings_ind_off_l_holo, + R.drawable.appwidget_settings_ind_off_c_holo, + R.drawable.appwidget_settings_ind_off_r_holo }; private static final int[] IND_DRAWABLE_MID = { - R.drawable.appwidget_settings_ind_mid_l, - R.drawable.appwidget_settings_ind_mid_c, - R.drawable.appwidget_settings_ind_mid_r + R.drawable.appwidget_settings_ind_mid_l_holo, + R.drawable.appwidget_settings_ind_mid_c_holo, + R.drawable.appwidget_settings_ind_mid_r_holo }; private static final int[] IND_DRAWABLE_ON = { - R.drawable.appwidget_settings_ind_on_l, - R.drawable.appwidget_settings_ind_on_c, - R.drawable.appwidget_settings_ind_on_r + R.drawable.appwidget_settings_ind_on_l_holo, + R.drawable.appwidget_settings_ind_on_c_holo, + R.drawable.appwidget_settings_ind_on_r_holo }; /** @@ -326,8 +326,8 @@ public class SettingsAppWidgetProvider extends AppWidgetProvider { public int getButtonId() { return R.id.img_wifi; } public int getIndicatorId() { return R.id.ind_wifi; } public int getButtonImageId(boolean on) { - return on ? R.drawable.ic_appwidget_settings_wifi_on - : R.drawable.ic_appwidget_settings_wifi_off; + return on ? R.drawable.ic_appwidget_settings_wifi_on_holo + : R.drawable.ic_appwidget_settings_wifi_off_holo; } @Override @@ -409,8 +409,8 @@ public class SettingsAppWidgetProvider extends AppWidgetProvider { public int getButtonId() { return R.id.img_bluetooth; } public int getIndicatorId() { return R.id.ind_bluetooth; } public int getButtonImageId(boolean on) { - return on ? R.drawable.ic_appwidget_settings_bluetooth_on - : R.drawable.ic_appwidget_settings_bluetooth_off; + return on ? R.drawable.ic_appwidget_settings_bluetooth_on_holo + : R.drawable.ic_appwidget_settings_bluetooth_off_holo; } @Override @@ -480,8 +480,8 @@ public class SettingsAppWidgetProvider extends AppWidgetProvider { public int getButtonId() { return R.id.img_gps; } public int getIndicatorId() { return R.id.ind_gps; } public int getButtonImageId(boolean on) { - return on ? R.drawable.ic_appwidget_settings_gps_on - : R.drawable.ic_appwidget_settings_gps_off; + return on ? R.drawable.ic_appwidget_settings_gps_on_holo + : R.drawable.ic_appwidget_settings_gps_off_holo; } @Override @@ -530,8 +530,8 @@ public class SettingsAppWidgetProvider extends AppWidgetProvider { public int getButtonId() { return R.id.img_sync; } public int getIndicatorId() { return R.id.ind_sync; } public int getButtonImageId(boolean on) { - return on ? R.drawable.ic_appwidget_settings_sync_on - : R.drawable.ic_appwidget_settings_sync_off; + return on ? R.drawable.ic_appwidget_settings_sync_on_holo + : R.drawable.ic_appwidget_settings_sync_off_holo; } @Override @@ -669,19 +669,19 @@ public class SettingsAppWidgetProvider extends AppWidgetProvider { if (getBrightnessMode(context)) { views.setImageViewResource(R.id.img_brightness, - R.drawable.ic_appwidget_settings_brightness_auto); + R.drawable.ic_appwidget_settings_brightness_auto_holo); views.setImageViewResource(R.id.ind_brightness, - R.drawable.appwidget_settings_ind_on_r); + R.drawable.appwidget_settings_ind_on_r_holo); } else if (getBrightness(context)) { views.setImageViewResource(R.id.img_brightness, - R.drawable.ic_appwidget_settings_brightness_on); + R.drawable.ic_appwidget_settings_brightness_full_holo); views.setImageViewResource(R.id.ind_brightness, - R.drawable.appwidget_settings_ind_on_r); + R.drawable.appwidget_settings_ind_on_r_holo); } else { views.setImageViewResource(R.id.img_brightness, - R.drawable.ic_appwidget_settings_brightness_off); + R.drawable.ic_appwidget_settings_brightness_off_holo); views.setImageViewResource(R.id.ind_brightness, - R.drawable.appwidget_settings_ind_off_r); + R.drawable.appwidget_settings_ind_off_r_holo); } } |