mirror of
https://github.com/moparisthebest/keepass2android
synced 2025-01-30 22:50:21 -05:00
PluginQR: added menu option to display license information
This commit is contained in:
parent
4d623b4039
commit
8869dc0edb
Binary file not shown.
@ -82,6 +82,7 @@ public final class R {
|
||||
public static final int history_title=0x7f0b0025;
|
||||
public static final int image_view=0x7f0b0019;
|
||||
public static final int launch_product_query=0x7f0b0003;
|
||||
public static final int menu_about=0x7f0b0036;
|
||||
public static final int menu_encode=0x7f0b0033;
|
||||
public static final int menu_history_clear_text=0x7f0b0035;
|
||||
public static final int menu_history_send=0x7f0b0034;
|
||||
@ -142,6 +143,8 @@ public final class R {
|
||||
public static final int beep=0x7f050000;
|
||||
}
|
||||
public static final class string {
|
||||
public static final int about=0x7f070086;
|
||||
public static final int about_msg=0x7f070087;
|
||||
public static final int action_show_qr=0x7f070077;
|
||||
public static final int all_fields=0x7f070079;
|
||||
public static final int app_name=0x7f070000;
|
||||
|
@ -1,5 +1,9 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="keepass2android.plugin.qr.MainActivity" >
|
||||
|
||||
<item android:id="@+id/menu_about"
|
||||
android:title="@string/about"
|
||||
android:icon="@android:drawable/ic_menu_help"
|
||||
android:orderInCategory="1"
|
||||
android:showAsAction="ifRoom"/>
|
||||
</menu>
|
||||
|
@ -115,8 +115,6 @@
|
||||
<string name="preferences_search_country">ابحث عن بلد</string>
|
||||
<string name="preferences_supplemental_summary">محاولة لاسترداد مزيد من المعلومات حول محتويات الباركود</string>
|
||||
<string name="preferences_supplemental_title">استرداد مزيد من المعلومات</string>
|
||||
<string name="preferences_try_bsplus">محاولة الباركود +</string>
|
||||
<string name="preferences_try_bsplus_summary">معززة مع الميزات الجديدة واجهة</string>
|
||||
<string name="preferences_vibrate_title">اهتزاز</string>
|
||||
<string name="result_address_book">تم العثور على معلومات جهة الاتصال</string>
|
||||
<string name="result_calendar">تم العثور على حدث التقويم</string>
|
||||
|
@ -115,8 +115,6 @@
|
||||
<string name="preferences_search_country">Държава при търсене</string>
|
||||
<string name="preferences_supplemental_summary">Опитай да получиш повече информация за баркода</string>
|
||||
<string name="preferences_supplemental_title">Търсене на разширения</string>
|
||||
<string name="preferences_try_bsplus">Опитайте Баркод Скенер+</string>
|
||||
<string name="preferences_try_bsplus_summary">Обогатен с нови характеристики и интерфейс</string>
|
||||
<string name="preferences_vibrate_title">Вибрация</string>
|
||||
<string name="result_address_book">Намерих информация за контакт</string>
|
||||
<string name="result_calendar">Намерих календарно събитие</string>
|
||||
|
@ -114,8 +114,6 @@
|
||||
<string name="preferences_search_country">Cerca per país</string>
|
||||
<string name="preferences_supplemental_summary">Intenta obtenir més informació sobre els continguts del codi de barres</string>
|
||||
<string name="preferences_supplemental_title">Aconsegueix més informació</string>
|
||||
<string name="preferences_try_bsplus">Intenta Barcode Scanner+</string>
|
||||
<string name="preferences_try_bsplus_summary">Millorat amb noves característiques i la interfície de</string>
|
||||
<string name="preferences_vibrate_title">Vibració</string>
|
||||
<string name="result_address_book">S\'ha trobat informació de contacte</string>
|
||||
<string name="result_calendar">S\'ha trobat un esdeveniment</string>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<resources>
|
||||
<string-array name="country_codes">
|
||||
<string-array name="country_codes" translatable="false">
|
||||
<item>-</item>
|
||||
<item>AR</item>
|
||||
<item>AU</item>
|
||||
@ -34,12 +34,12 @@
|
||||
<item>TW</item>
|
||||
<item>US</item>
|
||||
</string-array>
|
||||
<string-array name="preferences_front_light_values">
|
||||
<string-array name="preferences_front_light_values" translatable="false">
|
||||
<item>ON</item>
|
||||
<item>AUTO</item>
|
||||
<item>OFF</item>
|
||||
</string-array>
|
||||
<string-array name="preferences_front_light_options">
|
||||
<string-array name="preferences_front_light_options" translatable="false">
|
||||
<item>@string/preferences_front_light_on</item>
|
||||
<item>@string/preferences_front_light_auto</item>
|
||||
<item>@string/preferences_front_light_off</item>
|
||||
|
@ -18,4 +18,6 @@
|
||||
<string name="qr_question">Text found on QR code. How do you want to handle this text?</string>
|
||||
<string name="create_entry">Create new entry</string>
|
||||
<string name="search_entry">Search and open existing entry</string>
|
||||
<string name="about">About</string>
|
||||
<string name="about_msg">This app is built based on the ZXing library and barcode scanner app (Copyright by the ZXing team, licensed under the Apache 2.0 license).</string>
|
||||
</resources>
|
@ -56,6 +56,26 @@ public class MainActivity extends Activity {
|
||||
getMenuInflater().inflate(R.menu.main, menu);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
|
||||
new Builder(this)
|
||||
.setMessage(R.string.about_msg)
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
.create().show();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user