mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2026-04-19 10:07:02 +02:00
Delete unused gen. public key
This commit is contained in:
parent
406d6c0425
commit
9684c6c8a1
|
|
@ -367,6 +367,11 @@ public class UserPreference extends AppCompatActivity {
|
|||
SharedPreferences.Editor editor = prefs.edit();
|
||||
editor.putBoolean("use_generated_key", false);
|
||||
editor.apply();
|
||||
|
||||
//delete the public key from generation
|
||||
File file = new File(getFilesDir() + "/.ssh_key.pub");
|
||||
file.delete();
|
||||
|
||||
setResult(RESULT_OK);
|
||||
finish();
|
||||
} catch (IOException e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue