summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2016-02-03 12:50:45 -0800
committerTom Powell <zifnab@zifnab06.net>2017-03-26 16:14:45 -0700
commitbb93ea94e6273dd27dd3263a239976292fa8dc44 (patch)
tree3c0e6be66417897eeccbbc171861836a965edf0c
parentf6f7c1779f8865534d249e1f722ec4a531a58748 (diff)
downloadandroid_packages_apps_Trebuchet-bb93ea94e6273dd27dd3263a239976292fa8dc44.zip
android_packages_apps_Trebuchet-bb93ea94e6273dd27dd3263a239976292fa8dc44.tar.gz
android_packages_apps_Trebuchet-bb93ea94e6273dd27dd3263a239976292fa8dc44.tar.bz2
Trebuchet: Fix adapter derp on grid size item
Issue-id: OPO-421 Change-Id: Ia3bd18b38918e35fe8721399c9a32620c2b184b7
-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 31214e3..aa63b20 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;
default:
hideStates(stateView, settingSwitch);
@@ -214,7 +214,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));
@@ -238,7 +238,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() {