diff --git a/app/src/main/java/org/shadowice/flocke/andotp/EntriesCardAdapter.java b/app/src/main/java/org/shadowice/flocke/andotp/EntriesCardAdapter.java index effd8030..63fed538 100644 --- a/app/src/main/java/org/shadowice/flocke/andotp/EntriesCardAdapter.java +++ b/app/src/main/java/org/shadowice/flocke/andotp/EntriesCardAdapter.java @@ -150,8 +150,8 @@ public class EntriesCardAdapter extends RecyclerView.Adapter 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { exportJSONWithSelector(); } else { - Toast.makeText(this, R.string.msg_storage_permissions, Toast.LENGTH_LONG).show(); + Toast.makeText(this, R.string.toast_storage_permissions, Toast.LENGTH_LONG).show(); } } else if (requestCode == PERMISSIONS_REQUEST_READ_IMPORT) { if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { importJSONWithSelector(); } else { - Toast.makeText(this, R.string.msg_storage_permissions, Toast.LENGTH_LONG).show(); + Toast.makeText(this, R.string.toast_storage_permissions, Toast.LENGTH_LONG).show(); } } else { super.onRequestPermissionsResult(requestCode, permissions, grantResults); @@ -331,7 +331,7 @@ public class MainActivity extends AppCompatActivity { adapter.notifyDataSetChanged(); } catch (Exception e) { - Toast.makeText(this, R.string.msg_invalid_qr_code, Toast.LENGTH_LONG).show(); + Toast.makeText(this, R.string.toast_invalid_qr_code, Toast.LENGTH_LONG).show(); } } } else if (requestCode == INTENT_OPEN_DOCUMENT && resultCode == Activity.RESULT_OK) { diff --git a/app/src/main/res/layout/fab_menu.xml b/app/src/main/res/layout/fab_menu.xml index 0669e87f..cc9b9f46 100644 --- a/app/src/main/res/layout/fab_menu.xml +++ b/app/src/main/res/layout/fab_menu.xml @@ -38,7 +38,7 @@ android:layout_marginEnd="@dimen/fab_small_label_offset" android:background="@drawable/shape_fab_label" android:padding="@dimen/fab_small_label_padding" - android:text="@string/title_scan_qr" + android:text="@string/button_scan_qr" android:textColor="@android:color/white" android:typeface="normal" /> @@ -75,7 +75,7 @@ android:layout_marginEnd="@dimen/fab_small_label_offset" android:background="@drawable/shape_fab_label" android:padding="@dimen/fab_small_label_padding" - android:text="@string/title_enter_details" + android:text="@string/button_enter_details" android:textColor="@android:color/white" android:typeface="normal" /> diff --git a/app/src/main/res/menu/menu_main.xml b/app/src/main/res/menu/menu_main.xml index 51689c60..d74b2bc3 100644 --- a/app/src/main/res/menu/menu_main.xml +++ b/app/src/main/res/menu/menu_main.xml @@ -3,26 +3,26 @@ + android:title="@string/menu_main_submenu_backup"> @@ -30,6 +30,6 @@ diff --git a/app/src/main/res/menu/menu_popup.xml b/app/src/main/res/menu/menu_popup.xml index 7dc06a13..15b0eace 100644 --- a/app/src/main/res/menu/menu_popup.xml +++ b/app/src/main/res/menu/menu_popup.xml @@ -3,10 +3,10 @@ + android:title="@string/menu_popup_edit_label" /> + android:title="@string/menu_popup_remove" /> \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8eeaef82..747c50e6 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -2,40 +2,47 @@ andOTP OTP Authenticator - Remove - Rename - + + Enter details + Scan QR-Code Save + %d s - OTP Token + + OTP Token Tap to reveal - About - Edit label - Export (JSON) - Import (JSON) - Import / Export + + About + Export (JSON) + Import (JSON) + Search + Import / Export - Camera permission not granted - Are you sure you want do remove this account? - Copied to clipboard - Export to external storage successful - Export to external storage failed - Do you really want to export the database as plain-text JSON - file? This file contains all your secret keys, please keep it safe! + Edit label + Remove + + + Copied to clipboard + Export to external storage successful + Export to external storage failed + Import from external storage successful + Import from external storage failed + Invalid QR Code + External storage currently not accessible + Storage permissions not granted + + + Remove + Rename + Security warning + + Are you sure you want do remove this account? + Do you really want to export the database as plain-text + JSON file? This file contains all your secret keys, please keep it safe! - Import from external storage successful - Import from external storage failed - Invalid QR Code - Security warning - External storage currently not accessible - Storage permissions not granted - - Enter details - Scan QR-Code - Search