mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2025-09-06 14:32:39 +02:00
more refactoring
This commit is contained in:
parent
c2f520f7bf
commit
a313825756
|
@ -202,7 +202,7 @@ public class PasswordStore extends Activity implements ToCloneOrNot.OnFragmentI
|
||||||
}
|
}
|
||||||
|
|
||||||
public void createPassword(View v) {
|
public void createPassword(View v) {
|
||||||
this.currentDir = new File(((PasswordFragment) getFragmentManager().findFragmentByTag("PasswordsList")).getArguments().getString("Path"));
|
this.currentDir = getCurrentDir();
|
||||||
Log.i("PWDSTR", "Adding file to : " + this.currentDir.getAbsolutePath());
|
Log.i("PWDSTR", "Adding file to : " + this.currentDir.getAbsolutePath());
|
||||||
this.leftActivity = true;
|
this.leftActivity = true;
|
||||||
|
|
||||||
|
@ -226,6 +226,10 @@ public class PasswordStore extends Activity implements ToCloneOrNot.OnFragmentI
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private File getCurrentDir() {
|
||||||
|
return new File(((PasswordFragment) getFragmentManager().findFragmentByTag("PasswordsList")).getArguments().getString("Path"));
|
||||||
|
}
|
||||||
|
|
||||||
protected void onActivityResult(int requestCode, int resultCode,
|
protected void onActivityResult(int requestCode, int resultCode,
|
||||||
Intent data) {
|
Intent data) {
|
||||||
if (resultCode == RESULT_OK) {
|
if (resultCode == RESULT_OK) {
|
||||||
|
|
Loading…
Reference in a new issue