|
|
@@ -215,7 +215,15 @@ public class MainActivity extends AppCompatActivity implements PasswordEditListe
|
|
|
|
|
|
@Override
|
|
|
public void OnRemovePassword(File f) {
|
|
|
- f.delete();
|
|
|
+ AlertPromptGenerator.StaticMake(this)
|
|
|
+ .setTitle(R.string.are_you_sure)
|
|
|
+ .setView(new TextView(this).SetText(String.format(getString(R.string.about_to_rm_file), f.getName())))
|
|
|
+ .setPositiveButton(R.string.ok, (dialogInterface, view) -> {
|
|
|
+ f.delete();
|
|
|
+ fPasswordListView.refresh();
|
|
|
+ })
|
|
|
+ .setNegativeButton(R.string.cancel, null)
|
|
|
+ .show();
|
|
|
fPasswordListView.refresh();
|
|
|
}
|
|
|
|
|
|
@@ -232,8 +240,7 @@ public class MainActivity extends AppCompatActivity implements PasswordEditListe
|
|
|
.setView(new TextView(this)
|
|
|
.SetText(R.string.about_to_rm_directory))
|
|
|
.setPositiveButton(R.string.ok, (dialogInterface, view) -> DoRemoveDir(f))
|
|
|
- .setNegativeButton(R.string.cancel, (dialogInterface, view) -> {
|
|
|
- })
|
|
|
+ .setNegativeButton(R.string.cancel, null)
|
|
|
.show();
|
|
|
|
|
|
} else {
|