diff options
author | 2014-04-04 08:41:37 +0000 | |
---|---|---|
committer | 2014-04-04 08:41:37 +0000 | |
commit | 4767c226efe844d3cb6c476b920dc277956e24e0 (patch) | |
tree | 5b57245b9c781dbe8df4afe7cdcc2e7f0909b7ef /java/src/com/android/inputmethod/latin/debug | |
parent | 3b8b2977a6370b94f9198a0a2f9ea710248a0a2b (diff) | |
parent | 9b46ddc1d51fac37f970e108f7d93eb9ea11e1be (diff) | |
download | latinime-4767c226efe844d3cb6c476b920dc277956e24e0.tar.gz latinime-4767c226efe844d3cb6c476b920dc277956e24e0.tar.xz latinime-4767c226efe844d3cb6c476b920dc277956e24e0.zip |
am 9b46ddc1: Use platform default theme for activities and dialogs
* commit '9b46ddc1d51fac37f970e108f7d93eb9ea11e1be':
Use platform default theme for activities and dialogs
Diffstat (limited to 'java/src/com/android/inputmethod/latin/debug')
-rw-r--r-- | java/src/com/android/inputmethod/latin/debug/ExternalDictionaryGetterForDebug.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/debug/ExternalDictionaryGetterForDebug.java b/java/src/com/android/inputmethod/latin/debug/ExternalDictionaryGetterForDebug.java index 800f56597..139e73aa4 100644 --- a/java/src/com/android/inputmethod/latin/debug/ExternalDictionaryGetterForDebug.java +++ b/java/src/com/android/inputmethod/latin/debug/ExternalDictionaryGetterForDebug.java @@ -28,6 +28,7 @@ import com.android.inputmethod.latin.BinaryDictionaryGetter; import com.android.inputmethod.latin.R; import com.android.inputmethod.latin.makedict.DictionaryHeader; import com.android.inputmethod.latin.utils.CollectionUtils; +import com.android.inputmethod.latin.utils.DialogUtils; import com.android.inputmethod.latin.utils.DictionaryInfoUtils; import com.android.inputmethod.latin.utils.LocaleUtils; @@ -70,7 +71,7 @@ public class ExternalDictionaryGetterForDebug { } private static void showNoFileDialog(final Context context) { - new AlertDialog.Builder(context) + new AlertDialog.Builder(DialogUtils.getPlatformDialogThemeContext(context)) .setMessage(R.string.read_external_dictionary_no_files_message) .setPositiveButton(android.R.string.ok, new OnClickListener() { @Override @@ -81,8 +82,8 @@ public class ExternalDictionaryGetterForDebug { } private static void showChooseFileDialog(final Context context, final String[] fileNames) { - final AlertDialog.Builder builder = new AlertDialog.Builder(context); - builder.setTitle(R.string.read_external_dictionary_multiple_files_title) + new AlertDialog.Builder(DialogUtils.getPlatformDialogThemeContext(context)) + .setTitle(R.string.read_external_dictionary_multiple_files_title) .setItems(fileNames, new OnClickListener() { @Override public void onClick(final DialogInterface dialog, final int which) { @@ -111,7 +112,7 @@ public class ExternalDictionaryGetterForDebug { final String title = String.format( context.getString(R.string.read_external_dictionary_confirm_install_message), languageName); - new AlertDialog.Builder(context) + new AlertDialog.Builder(DialogUtils.getPlatformDialogThemeContext(context)) .setTitle(title) .setMessage(message) .setNegativeButton(android.R.string.cancel, new OnClickListener() { @@ -167,7 +168,7 @@ public class ExternalDictionaryGetterForDebug { } } catch (IOException e) { // There was an error: show a dialog - new AlertDialog.Builder(context) + new AlertDialog.Builder(DialogUtils.getPlatformDialogThemeContext(context)) .setTitle(R.string.error) .setMessage(e.toString()) .setPositiveButton(android.R.string.ok, new OnClickListener() { |