1
0
mirror of http://galexander.org/git/simplesshd.git synced 2025-03-01 07:22:02 +00:00

and now it works, even will create a new ssh directory from scratch

This commit is contained in:
Greg Alexander 2016-06-19 16:45:18 -04:00
parent 31fd0b37d0
commit 4eecabf241

View File

@ -67,12 +67,14 @@ public class AuthKeys extends Activity {
private void save_authtext() { private void save_authtext() {
String s = get_authtext(); String s = get_authtext();
if ((authtext_orig != null) && (s != null) && if ((s != null) && ((authtext_orig != null) ||
!s.equals(authtext_orig)) { !s.equals(authtext_orig))) {
Intent i = new Intent(this, AuthKeysSave.class); Intent i = new Intent(this, AuthKeysSave.class);
i.putExtra("s", s); i.putExtra("s", s);
startService(i); startService(i);
} }
/* so that we won't save it again */
authtext_orig = null;
} }
private String get_authtext() { private String get_authtext() {