From 8b9eec7a01fd4cc49bf9fb0afeedd03631b66476 Mon Sep 17 00:00:00 2001 From: RikkaW Date: Thu, 4 Feb 2016 18:32:55 +0800 Subject: [PATCH] Fix add built-in engines to database each time Update Japanese translation --- app/build.gradle | 4 +- .../staticdata/CustomEngine.java | 6 +-- app/src/main/res/values-ja/strings.xml | 40 +++++++++---------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index b2e0066..f04a828 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,7 +11,7 @@ android { defaultConfig { minSdkVersion 15 targetSdkVersion 23 - versionCode 14100 + versionCode 14200 } buildTypes { release { @@ -21,7 +21,7 @@ android { } productFlavors { - def String name = "1.4.1" + def String name = "1.4.2" COOLAPK { applicationId "rikka.searchbyimage" diff --git a/app/src/main/java/rikka/searchbyimage/staticdata/CustomEngine.java b/app/src/main/java/rikka/searchbyimage/staticdata/CustomEngine.java index f5ea191..633df00 100644 --- a/app/src/main/java/rikka/searchbyimage/staticdata/CustomEngine.java +++ b/app/src/main/java/rikka/searchbyimage/staticdata/CustomEngine.java @@ -126,8 +126,6 @@ public static synchronized List getList(Context context) { private static List loadList(Context context) { List list = new ArrayList<>(); - addBuildInEngines(context, list); - DatabaseHelper dbHelper = DatabaseHelper.instance(context); Cursor cursor = dbHelper.getReadableDatabase() .query(CustomEngineTable.TABLE_NAME, null, null, null, null, null, null); @@ -148,6 +146,8 @@ private static List loadList(Context context) { cursor.close(); + addBuildInEngines(context, list); + return list; } @@ -263,7 +263,7 @@ private static void addBuildInEngines(Context context, List list) } addEngineToDb(context, parcelable, i); - //addEngineToList(parcelable, list); + addEngineToList(parcelable.data, list); } } } diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 47729d8..06f625c 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -114,28 +114,28 @@ メールアプリ見つかりません。 Baidu設定 - Search engines - Edit data - Request url - Name - Key - Value + 検索エンジン + データの編集 + リクエストURL + 名前 + キー + (image) (selector) - New form data - Built-in - Custom - Check your data - Please enable at least one search engine - - Open URL - Open saved HTML file in WebView - Built-in viewer for iqdb.org - - Advance - Custom search engines - Help - Delete + フォームデータを追加 + ビルトイン + カスタム + データを確認してください + 少なくとも1つの検索エンジンを有効にしてください + + URLを開く + WebViewで保存されたHTMLファイルを開く + ビルトインiqdb.org用のビューア + + 詳細設定 + 検索エンジンのカスタム + ヘルプ + 削除 Open action Form Should not be empty