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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user