diff --git a/res/layout/edit_key.xml b/res/layout/edit_key.xml
index 0b441b0a2..88be75d86 100644
--- a/res/layout/edit_key.xml
+++ b/res/layout/edit_key.xml
@@ -32,7 +32,33 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
- android:layout_marginRight="?android:attr/scrollbarSize"/>
+ android:layout_marginRight="?android:attr/scrollbarSize">
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/res/layout/edit_key_user_id_item.xml b/res/layout/edit_key_user_id_item.xml
index 6164cf767..2dc383a01 100644
--- a/res/layout/edit_key_user_id_item.xml
+++ b/res/layout/edit_key_user_id_item.xml
@@ -59,7 +59,8 @@
android:id="@+id/name"
android:layout_weight="1"
android:layout_height="wrap_content"
- android:layout_width="fill_parent"/>
+ android:layout_width="fill_parent"
+ android:inputType="textPersonName|textCapWords"/>
@@ -77,7 +78,8 @@
android:id="@+id/email"
android:layout_weight="1"
android:layout_height="wrap_content"
- android:layout_width="fill_parent"/>
+ android:layout_width="fill_parent"
+ android:inputType="textEmailAddress"/>
diff --git a/res/values-da/strings.xml b/res/values-da/strings.xml
index 8e75695a5..eb86251e1 100644
--- a/res/values-da/strings.xml
+++ b/res/values-da/strings.xml
@@ -63,6 +63,8 @@
Slet
Ingen
Ryd Filter
+ Skift Kodeord
+ Sæt Kodeord
Om APG
@@ -71,8 +73,6 @@
Administrér Offentlige Nøgler
Administrér Private Nøgler
Indstillinger
- Skift Kodeord
- Sæt Kodeord
Importér Nøgler
Eksportér Nøgler
Eksportér Nøgle
@@ -146,7 +146,7 @@
Forkert kodeord.
Bruger clipboardets indhold.
Nøgle gemt.
- Sæt et kodeord via Indstillinger først.
+ Sæt et kodeord først.
Der er ikke installeret en kompatibel fil håndtering.
Kodeordet matchede ikke.
Et tomt kodeord er ikke tilladt.
diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml
index 2bca67ecd..c3e35d1e5 100644
--- a/res/values-de/strings.xml
+++ b/res/values-de/strings.xml
@@ -66,6 +66,8 @@
Löschen
Niemals
Filter zurücksetzen
+ Passwort ändern
+ Passwort wählen
Über
@@ -74,8 +76,6 @@
Öffentliche Schlüssel verwalten
Private Schlüssel verwalten
Einstellungen
- Passwort ändern
- Passwort wählen
Schlüssel importieren
Mehrere Schlüssel exportieren
Einzelnen Schlüssel exportieren
@@ -154,7 +154,7 @@
Zwischenablage wird verwendet.
Schlüssel gespeichert.
- Zuerst über Auswahlmenü Passwort festlegen.
+ Zuerst Passwort festlegen.
Kein kompatibler Dateimanager installiert.
Passwörter stimmen nicht überein.
Leere Passwörter sind unzulässig.
diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml
index 1af23ad69..0513ed7d7 100644
--- a/res/values-it/strings.xml
+++ b/res/values-it/strings.xml
@@ -65,6 +65,8 @@
Cancella
Nessuno
Cancella Filtro
+ Cambia Pass Phrase
+ Imposta Pass Phrase
Informazioni
@@ -73,8 +75,6 @@
Gestisci Chiavi Pubbliche
Gestisci Chiavi Private
Impostazioni
- Cambia Pass Phrase
- Imposta Pass Phrase
Importa Chiavi
Esporta Chiavi
Esporta Chiave
@@ -148,7 +148,7 @@
Pass Phrase errata.
Utilizza il contenuto della clipboard.
Chiave salvata..
- Imposta prima una Pass Phrase tramite il menù Opzioni.
+ Imposta prima una Pass Phrase.
Nessun file manager compatibile installato.
La Pass Phrase non è corretta
La Pass Phrases non può essere vuota.
diff --git a/res/values-sl/strings.xml b/res/values-sl/strings.xml
index 78b2537cf..2e6571dd7 100644
--- a/res/values-sl/strings.xml
+++ b/res/values-sl/strings.xml
@@ -65,6 +65,8 @@
Izbriši
Brez
Umakni filtriranje
+ Spremeni geslo
+ Določi geslo
O programu
@@ -73,8 +75,6 @@
Upravljanje javnih ključev
Upravljanje zasebnih ključev
Nastavitve
- Spremeni geslo
- Določi geslo
Uvozi ključe
Izvozi ključe
Izvozi ključ
@@ -150,7 +150,7 @@
Napačno geslo.
Uporabljam vsebino odložišča.
Ključ shranjen.
- Najprej preko menija možnosti določite geslo.
+ Najprej določite geslo.
Nameščen ni noben združljiv upravitelj datotek.
Gesli se ne ujemata.
Prazna gesla niso dovoljena.
diff --git a/res/values/strings.xml b/res/values/strings.xml
index e83fd1734..a596a534a 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -63,6 +63,8 @@
Delete
None
Clear Filter
+ Change Pass Phrase
+ Set Pass Phrase
About
@@ -71,8 +73,6 @@
Manage Public Keys
Manage Secret Keys
Settings
- Change Pass Phrase
- Set Pass Phrase
Import Keys
Export Keys
Export Key
@@ -148,7 +148,7 @@
Wrong pass phrase.
Using clipboard content.
Key saved.
- Set a pass phrase via the option menu first.
+ Set a pass phrase first.
No compatible file manager installed.
The pass phrases didn\'t match.
Empty pass phrases are not allowed.
diff --git a/src/org/thialfihar/android/apg/EditKeyActivity.java b/src/org/thialfihar/android/apg/EditKeyActivity.java
index e71fd8e8c..3fa5a7552 100644
--- a/src/org/thialfihar/android/apg/EditKeyActivity.java
+++ b/src/org/thialfihar/android/apg/EditKeyActivity.java
@@ -60,6 +60,8 @@ public class EditKeyActivity extends BaseActivity implements OnClickListener {
private String mCurrentPassPhrase = null;
private String mNewPassPhrase = null;
+ private Button mChangePassPhrase;
+
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@@ -90,6 +92,14 @@ public class EditKeyActivity extends BaseActivity implements OnClickListener {
}
}
+ mChangePassPhrase = (Button) findViewById(R.id.btn_change_pass_phrase);
+ mChangePassPhrase.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ showDialog(Id.dialog.new_pass_phrase);
+ }
+ });
+
mSaveButton = (Button) findViewById(R.id.btn_save);
mDiscardButton = (Button) findViewById(R.id.btn_discard);
@@ -114,6 +124,8 @@ public class EditKeyActivity extends BaseActivity implements OnClickListener {
mCurrentPassPhrase = "";
}
+ updatePassPhraseButtonText();
+
Toast.makeText(this, "Warning: Key editing is still kind of beta.", Toast.LENGTH_LONG).show();
}
@@ -131,30 +143,13 @@ public class EditKeyActivity extends BaseActivity implements OnClickListener {
@Override
public boolean onCreateOptionsMenu(Menu menu) {
- menu.add(0, Id.menu.option.new_pass_phrase, 0,
- (havePassPhrase() ? R.string.menu_changePassPhrase : R.string.menu_setPassPhrase))
- .setIcon(android.R.drawable.ic_menu_add);
- menu.add(0, Id.menu.option.preferences, 1, R.string.menu_preferences)
+ menu.add(0, Id.menu.option.preferences, 0, R.string.menu_preferences)
.setIcon(android.R.drawable.ic_menu_preferences);
- menu.add(0, Id.menu.option.about, 2, R.string.menu_about)
+ menu.add(0, Id.menu.option.about, 1, R.string.menu_about)
.setIcon(android.R.drawable.ic_menu_info_details);
return true;
}
- @Override
- public boolean onOptionsItemSelected(MenuItem item) {
- switch (item.getItemId()) {
- case Id.menu.option.new_pass_phrase: {
- showDialog(Id.dialog.new_pass_phrase);
- return true;
- }
-
- default: {
- return super.onOptionsItemSelected(item);
- }
- }
- }
-
@Override
protected Dialog onCreateDialog(int id) {
switch (id) {
@@ -194,6 +189,7 @@ public class EditKeyActivity extends BaseActivity implements OnClickListener {
}
mNewPassPhrase = passPhrase1;
+ updatePassPhraseButtonText();
}
});
@@ -289,4 +285,9 @@ public class EditKeyActivity extends BaseActivity implements OnClickListener {
finish();
}
}
+
+ private void updatePassPhraseButtonText() {
+ mChangePassPhrase.setText(
+ havePassPhrase() ? R.string.btn_changePassPhrase : R.string.btn_setPassPhrase);
+ }
}
\ No newline at end of file