diff --git a/res/values-cs/strings.xml b/res/values-cs/strings.xml index d3f4102..ec6c9c2 100644 --- a/res/values-cs/strings.xml +++ b/res/values-cs/strings.xml @@ -117,6 +117,6 @@ Tato aplikace neobsahuje žádné reklamy, nevyužívá připojení k síti a je End - + diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml index 165cae1..e736083 100644 --- a/res/values-de/strings.xml +++ b/res/values-de/strings.xml @@ -117,6 +117,6 @@ Diese App enthält keine Werbung, benötigt keinen Netzwerkzugriff und ist quell Ende - + diff --git a/res/values-es/strings.xml b/res/values-es/strings.xml index a5db291..6d5a8d0 100644 --- a/res/values-es/strings.xml +++ b/res/values-es/strings.xml @@ -117,6 +117,6 @@ La misma no contiene ningún anuncio/publicidad, no realiza peticiones de red y Fin - + diff --git a/res/values-fa/strings.xml b/res/values-fa/strings.xml index e946504..9f6a004 100644 --- a/res/values-fa/strings.xml +++ b/res/values-fa/strings.xml @@ -117,6 +117,6 @@ This application contains no ads, doesn't make any network requests and is Open - + diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml index 95265a8..349bcfc 100644 --- a/res/values-fr/strings.xml +++ b/res/values-fr/strings.xml @@ -117,6 +117,6 @@ Cette application ne contient pas de publicité, n'accède pas au réseau et est Fin - + diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml index fa388d9..30e597b 100644 --- a/res/values-it/strings.xml +++ b/res/values-it/strings.xml @@ -117,6 +117,6 @@ This application contains no ads, doesn't make any network requests and is Open - + diff --git a/res/values-ko/strings.xml b/res/values-ko/strings.xml index 9ed24f1..e69560d 100644 --- a/res/values-ko/strings.xml +++ b/res/values-ko/strings.xml @@ -117,6 +117,6 @@ This application contains no ads, doesn't make any network requests and is Open - + diff --git a/res/values-lv/strings.xml b/res/values-lv/strings.xml index 5118e33..e63f3ee 100644 --- a/res/values-lv/strings.xml +++ b/res/values-lv/strings.xml @@ -119,6 +119,6 @@ Tagad lieliski piemērota izmantošanai ikdienā. Beigas - + diff --git a/res/values-pl/strings.xml b/res/values-pl/strings.xml index c7a654a..e4ff2b8 100644 --- a/res/values-pl/strings.xml +++ b/res/values-pl/strings.xml @@ -117,6 +117,6 @@ Aplikacja nie zawiera reklam, nie żąda dostępu do internetu, a jej kod źród End - + diff --git a/res/values-pt/strings.xml b/res/values-pt/strings.xml index c83d484..c03e684 100644 --- a/res/values-pt/strings.xml +++ b/res/values-pt/strings.xml @@ -117,6 +117,6 @@ Este aplicativo não contém anúncios, não faz nenhuma solicitação de rede e End - + diff --git a/res/values-ro/strings.xml b/res/values-ro/strings.xml index 3491ded..56a51f5 100644 --- a/res/values-ro/strings.xml +++ b/res/values-ro/strings.xml @@ -117,6 +117,6 @@ Această aplicație nu conține publicitate, nu folosește rețeaua deloc și e - + diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml index 7445709..435e687 100644 --- a/res/values-ru/strings.xml +++ b/res/values-ru/strings.xml @@ -117,6 +117,6 @@ End - + diff --git a/res/values-tr/strings.xml b/res/values-tr/strings.xml index 362859a..efa6e0b 100644 --- a/res/values-tr/strings.xml +++ b/res/values-tr/strings.xml @@ -117,6 +117,6 @@ Bu uygulama açık kaynaklıdır. Reklam içermez ve internete bağlanmaz."SON(Sağ yön tuşu) - + diff --git a/res/values-uk/strings.xml b/res/values-uk/strings.xml index f432082..b4b592a 100644 --- a/res/values-uk/strings.xml +++ b/res/values-uk/strings.xml @@ -117,6 +117,6 @@ End - + diff --git a/res/values-vi/strings.xml b/res/values-vi/strings.xml index dd8f487..9a13da3 100644 --- a/res/values-vi/strings.xml +++ b/res/values-vi/strings.xml @@ -117,6 +117,6 @@ Bây giờ đã hoàn hảo cho việc sử dụng hàng ngày. - + diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml index e17ce1f..017591b 100644 --- a/res/values-zh-rCN/strings.xml +++ b/res/values-zh-rCN/strings.xml @@ -117,6 +117,6 @@ End - + diff --git a/res/values/strings.xml b/res/values/strings.xml index 7321390..9c3ec54 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -117,6 +117,6 @@ This application contains no ads, doesn't make any network requests and is Open End Recently copied text Pinned - Remove this saved clipboard? + Remove this clipboard? Yes diff --git a/srcs/juloo.keyboard2/ClipboardHistoryView.java b/srcs/juloo.keyboard2/ClipboardHistoryView.java index e13bec8..11871e7 100644 --- a/srcs/juloo.keyboard2/ClipboardHistoryView.java +++ b/srcs/juloo.keyboard2/ClipboardHistoryView.java @@ -1,6 +1,8 @@ package juloo.keyboard2; +import android.app.AlertDialog; import android.content.Context; +import android.content.DialogInterface; import android.util.AttributeSet; import android.view.View; import android.view.ViewGroup; @@ -95,7 +97,21 @@ public final class ClipboardHistoryView extends NonScrollListView new View.OnClickListener() { @Override - public void onClick(View v) { remove_entry(pos); } + public void onClick(View v) + { + AlertDialog d = new AlertDialog.Builder(getContext()) + .setTitle(R.string.clipboard_remove_confirm) + .setPositiveButton(R.string.clipboard_remove_confirmed, + new DialogInterface.OnClickListener(){ + public void onClick(DialogInterface _dialog, int _which) + { + remove_entry(pos); + } + }) + .setNegativeButton(android.R.string.cancel, null) + .create(); + Utils.show_dialog_on_ime(d, v.getWindowToken()); + } }); return v; } diff --git a/srcs/juloo.keyboard2/ClipboardPinView.java b/srcs/juloo.keyboard2/ClipboardPinView.java index c393d2d..26833d6 100644 --- a/srcs/juloo.keyboard2/ClipboardPinView.java +++ b/srcs/juloo.keyboard2/ClipboardPinView.java @@ -7,8 +7,6 @@ import android.content.SharedPreferences; import android.util.AttributeSet; import android.view.View; import android.view.ViewGroup; -import android.view.Window; -import android.view.WindowManager; import android.widget.BaseAdapter; import android.widget.TextView; import java.util.ArrayList; @@ -121,25 +119,18 @@ public final class ClipboardPinView extends NonScrollListView @Override public void onClick(View v) { - // Confirmation dialog for removing a clip AlertDialog d = new AlertDialog.Builder(getContext()) .setTitle(R.string.clipboard_remove_confirm) - .setPositiveButton(R.string.clipboard_remove_confirmed, new DialogInterface.OnClickListener(){ - public void onClick(DialogInterface _dialog, int _which) - { - remove_entry(pos); - } - }) + .setPositiveButton(R.string.clipboard_remove_confirmed, + new DialogInterface.OnClickListener(){ + public void onClick(DialogInterface _dialog, int _which) + { + remove_entry(pos); + } + }) .setNegativeButton(android.R.string.cancel, null) .create(); - // https://stackoverflow.com/questions/3494476/android-ime-how-to-show-a-pop-up-dialog - Window dw = d.getWindow(); - WindowManager.LayoutParams lp = dw.getAttributes(); - lp.token = v.getWindowToken(); - lp.type = WindowManager.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG; - dw.setAttributes(lp); - dw.addFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM); - d.show(); + Utils.show_dialog_on_ime(d, v.getWindowToken()); } }); return v;