Changed to lambda convention
This commit is contained in:
parent
dcdb2c323e
commit
342b3191ac
1 changed files with 9 additions and 15 deletions
|
@ -274,22 +274,16 @@ public class ContentSettingsFragment extends BasePreferenceFragment {
|
||||||
AlertDialog.Builder alert = new AlertDialog.Builder(getContext());
|
AlertDialog.Builder alert = new AlertDialog.Builder(getContext());
|
||||||
alert.setTitle(R.string.import_settings);
|
alert.setTitle(R.string.import_settings);
|
||||||
|
|
||||||
alert.setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {
|
alert.setNegativeButton(android.R.string.no, (dialog, which) -> {
|
||||||
@Override
|
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
|
||||||
dialog.dismiss();
|
dialog.dismiss();
|
||||||
// restart app to properly load db
|
// restart app to properly load db
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
alert.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {
|
alert.setPositiveButton(android.R.string.yes, (dialog, which) -> {
|
||||||
@Override
|
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
|
||||||
dialog.dismiss();
|
dialog.dismiss();
|
||||||
loadSharedPreferences(newpipe_settings);
|
loadSharedPreferences(newpipe_settings);
|
||||||
// restart app to properly load db
|
// restart app to properly load db
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
alert.show();
|
alert.show();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue