Loading src/com/android/alarmclock/DigitalWidgetViewsFactory.java +1 −0 Original line number Diff line number Diff line Loading @@ -206,6 +206,7 @@ public class DigitalWidgetViewsFactory extends BroadcastReceiver implements Remo } if (mReloadCitiesDb) { mAdapter.loadCitiesDb(mContext); mAdapter.updateHomeLabel(mContext); mReloadCitiesDb = false; } Loading src/com/android/deskclock/worldclock/WorldClockAdapter.java +8 −0 Original line number Diff line number Diff line Loading @@ -105,6 +105,14 @@ public class WorldClockAdapter extends BaseAdapter { } } public void updateHomeLabel(Context context) { // Update the "home" label if the home time zone clock is shown if (needHomeCity() && mCitiesList.length > 0) { ((CityObj) mCitiesList[0]).mCityName = context.getResources().getString(R.string.home_label); } } public boolean needHomeCity() { SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(mContext); if (sharedPref.getBoolean(SettingsActivity.KEY_AUTO_HOME_CLOCK, false)) { Loading Loading
src/com/android/alarmclock/DigitalWidgetViewsFactory.java +1 −0 Original line number Diff line number Diff line Loading @@ -206,6 +206,7 @@ public class DigitalWidgetViewsFactory extends BroadcastReceiver implements Remo } if (mReloadCitiesDb) { mAdapter.loadCitiesDb(mContext); mAdapter.updateHomeLabel(mContext); mReloadCitiesDb = false; } Loading
src/com/android/deskclock/worldclock/WorldClockAdapter.java +8 −0 Original line number Diff line number Diff line Loading @@ -105,6 +105,14 @@ public class WorldClockAdapter extends BaseAdapter { } } public void updateHomeLabel(Context context) { // Update the "home" label if the home time zone clock is shown if (needHomeCity() && mCitiesList.length > 0) { ((CityObj) mCitiesList[0]).mCityName = context.getResources().getString(R.string.home_label); } } public boolean needHomeCity() { SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(mContext); if (sharedPref.getBoolean(SettingsActivity.KEY_AUTO_HOME_CLOCK, false)) { Loading