summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2016-02-03 12:50:45 -0800
committercretin45 <cretin45@gmail.com>2016-02-03 12:51:23 -0800
commitde0af4b16944370c015c11cf1db151e6ee8e9232 (patch)
tree8011ef0268fdb628a16620e978ad1bade449d820 /src
parent2d9c49de4f6ed0efd8ff696d8724d1329ecaf60c (diff)
downloadandroid_packages_apps_Trebuchet-de0af4b16944370c015c11cf1db151e6ee8e9232.zip
android_packages_apps_Trebuchet-de0af4b16944370c015c11cf1db151e6ee8e9232.tar.gz
android_packages_apps_Trebuchet-de0af4b16944370c015c11cf1db151e6ee8e9232.tar.bz2
Trebuchet: Fix adapter derp on grid size item
Issue-id: OPO-421 Change-Id: Ia3bd18b38918e35fe8721399c9a32620c2b184b7
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/list/SettingsPinnedHeaderAdapter.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/launcher3/list/SettingsPinnedHeaderAdapter.java b/src/com/android/launcher3/list/SettingsPinnedHeaderAdapter.java
index b0c1bd1..d2f721a 100644
--- a/src/com/android/launcher3/list/SettingsPinnedHeaderAdapter.java
+++ b/src/com/android/launcher3/list/SettingsPinnedHeaderAdapter.java
@@ -121,7 +121,7 @@ public class SettingsPinnedHeaderAdapter extends PinnedHeaderListAdapter {
setSettingSwitch(stateView, settingSwitch, current);
break;
case 3:
- updateDynamicGridSizeSettingsItem(v);
+ updateDynamicGridSizeSettingsItem(stateView, settingSwitch);
break;
case 4:
current = SettingsProvider.getBoolean(mContext,
@@ -226,7 +226,7 @@ public class SettingsPinnedHeaderAdapter extends PinnedHeaderListAdapter {
return mPinnedHeaderCount;
}
- public void updateDynamicGridSizeSettingsItem(View v) {
+ public void updateDynamicGridSizeSettingsItem(TextView stateView, Switch settingSwitch) {
InvariantDeviceProfile.GridSize gridSize = InvariantDeviceProfile.GridSize.getModeForValue(
SettingsProvider.getIntCustomDefault(mLauncher,
SettingsProvider.SETTINGS_UI_DYNAMIC_GRID_SIZE, 0));
@@ -250,7 +250,7 @@ public class SettingsPinnedHeaderAdapter extends PinnedHeaderListAdapter {
state = rows + " " + "\u00d7" + " " + columns;
break;
}
- ((TextView) v.findViewById(R.id.item_state)).setText(state);
+ setStateText(stateView, settingSwitch, state);
}
OnClickListener mSettingsItemListener = new OnClickListener() {