summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorPeter Ng <petergng@google.com>2011-08-30 13:08:08 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-08-30 13:08:08 -0700
commit9ca0ef5732d2d25f367b5fa01e8b6562f82d788d (patch)
treee8a351be0e1952fedce528f8225e4f9d8857181b /src/com/android
parent50d69c83400238ee036ca3ae0f377f64aba411d4 (diff)
parenta1252ccf7b31d01a9612fc0479dc7a632cabf8a7 (diff)
downloadpackages_apps_settings-9ca0ef5732d2d25f367b5fa01e8b6562f82d788d.zip
packages_apps_settings-9ca0ef5732d2d25f367b5fa01e8b6562f82d788d.tar.gz
packages_apps_settings-9ca0ef5732d2d25f367b5fa01e8b6562f82d788d.tar.bz2
Merge "Power control widget holofied"
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/settings/widget/SettingsAppWidgetProvider.java46
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);
}
}