mirror of
https://github.com/KokaKiwi/BarInsta
synced 2026-03-05 03:51:36 +00:00
close #438
This commit is contained in:
parent
f9bb71b67a
commit
82885102d9
2 changed files with 25 additions and 3 deletions
|
|
@ -26,10 +26,30 @@ public class BackupPreferencesFragment extends BasePreferencesFragment {
|
|||
if (context == null) {
|
||||
return;
|
||||
}
|
||||
screen.addPreference(getAboutPreference(context));
|
||||
screen.addPreference(getWarningPreference(context));
|
||||
screen.addPreference(getCreatePreference(context));
|
||||
screen.addPreference(getRestorePreference(context));
|
||||
}
|
||||
|
||||
private Preference getAboutPreference(@NonNull final Context context) {
|
||||
final Preference preference = new Preference(context);
|
||||
preference.setSummary(R.string.backup_summary);
|
||||
preference.setEnabled(false);
|
||||
preference.setIcon(R.drawable.ic_outline_info_24);
|
||||
preference.setIconSpaceReserved(true);
|
||||
return preference;
|
||||
}
|
||||
|
||||
private Preference getWarningPreference(@NonNull final Context context) {
|
||||
final Preference preference = new Preference(context);
|
||||
preference.setSummary(R.string.backup_warning);
|
||||
preference.setEnabled(false);
|
||||
preference.setIcon(R.drawable.ic_warning);
|
||||
preference.setIconSpaceReserved(true);
|
||||
return preference;
|
||||
}
|
||||
|
||||
private Preference getCreatePreference(@NonNull final Context context) {
|
||||
final Preference preference = new Preference(context);
|
||||
preference.setTitle(R.string.create_backup);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue