Check if the useAndroidSync preference exists before changing it
(Hopefully) fixes #197
This commit is contained in:
parent
33e0070950
commit
c6c6cce208
1 changed files with 6 additions and 3 deletions
|
@ -134,10 +134,13 @@ public class SettingsActivity extends BaseActivity
|
||||||
}
|
}
|
||||||
|
|
||||||
settings.setAndroidBackupServiceEnabled(false);
|
settings.setAndroidBackupServiceEnabled(false);
|
||||||
fragment.useAndroidSync.setEnabled(false);
|
if (fragment.useAndroidSync != null) {
|
||||||
fragment.useAndroidSync.setChecked(false);
|
fragment.useAndroidSync.setEnabled(false);
|
||||||
|
fragment.useAndroidSync.setChecked(false);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
fragment.useAndroidSync.setEnabled(true);
|
if (fragment.useAndroidSync != null)
|
||||||
|
fragment.useAndroidSync.setEnabled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue