Support changes in support prefs for DeviceDefault themes

Change-Id: Id9c333aed202cca8a8845e6f58af1c252e7e111a
This commit is contained in:
Jason Monk
2015-10-28 14:34:53 -04:00
parent 85b2d55d36
commit 52a302e81b
10 changed files with 320 additions and 15 deletions

View File

@@ -69,7 +69,7 @@ public class SyncStateSwitchPreference extends SwitchPreference {
final boolean failedVisible = mFailed && !activeVisible;
syncFailedView.setVisibility(failedVisible ? View.VISIBLE : View.GONE);
View switchView = view.findViewById(R.id.switchWidget);
View switchView = view.findViewById(com.android.internal.R.id.switch_widget);
if (mOneTimeSyncMode) {
switchView.setVisibility(View.GONE);