Fix account problems

Set the id to the right value for now to fix the switches.

Make sure we call the super on the PreferenceFragment to set up
the RecyclerView properly.

Bug: 25621599
Change-Id: I7cc1f68a612d04ca1f8d068c272cdc8f85003938
This commit is contained in:
Jason Monk
2015-11-10 16:07:17 -05:00
parent 27fb6c21ee
commit 0e23b41144
4 changed files with 8 additions and 8 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(com.android.internal.R.id.switchWidget);
View switchView = view.findViewById(R.id.switchWidget);
if (mOneTimeSyncMode) {
switchView.setVisibility(View.GONE);