mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-01 14:55:19 +00:00
Delete unused gen. public key
This commit is contained in:
@@ -367,6 +367,11 @@ public class UserPreference extends AppCompatActivity {
|
|||||||
SharedPreferences.Editor editor = prefs.edit();
|
SharedPreferences.Editor editor = prefs.edit();
|
||||||
editor.putBoolean("use_generated_key", false);
|
editor.putBoolean("use_generated_key", false);
|
||||||
editor.apply();
|
editor.apply();
|
||||||
|
|
||||||
|
//delete the public key from generation
|
||||||
|
File file = new File(getFilesDir() + "/.ssh_key.pub");
|
||||||
|
file.delete();
|
||||||
|
|
||||||
setResult(RESULT_OK);
|
setResult(RESULT_OK);
|
||||||
finish();
|
finish();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
Reference in New Issue
Block a user