summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorAnders Hammar1 <anders.hammar1@sonyericsson.com>2011-01-14 10:00:39 +0100
committerDianne Hackborn <hackbod@google.com>2011-01-14 16:00:47 -0800
commit0ce53b47d6625806ae5aac8eb17e40e6c3510e37 (patch)
tree50a003b13f2a4fe123492e090a68aab34f96dc32 /policy
parent0b08c5cb14e848f41eb33093c3e8198ab416e0ab (diff)
downloadframeworks_base-0ce53b47d6625806ae5aac8eb17e40e6c3510e37.zip
frameworks_base-0ce53b47d6625806ae5aac8eb17e40e6c3510e37.tar.gz
frameworks_base-0ce53b47d6625806ae5aac8eb17e40e6c3510e37.tar.bz2
DO NOT MERGE Make the Phone options dialog use current language
The title of the Phone options dialog is displayed using wrong translation if the user changes the current language setting. Moving the setTitle call to prepareDialog to ensure that the title gets updated before the dialog is shown. Change-Id: I6f8f460789effd22de5be8339cc46667269e78c0
Diffstat (limited to 'policy')
-rw-r--r--policy/src/com/android/internal/policy/impl/GlobalActions.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/policy/src/com/android/internal/policy/impl/GlobalActions.java b/policy/src/com/android/internal/policy/impl/GlobalActions.java
index 1f06dcc..5e33f05 100644
--- a/policy/src/com/android/internal/policy/impl/GlobalActions.java
+++ b/policy/src/com/android/internal/policy/impl/GlobalActions.java
@@ -221,8 +221,7 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac
final AlertDialog.Builder ab = new AlertDialog.Builder(mContext);
ab.setAdapter(mAdapter, this)
- .setInverseBackgroundForced(true)
- .setTitle(R.string.global_actions);
+ .setInverseBackgroundForced(true);
final AlertDialog dialog = ab.create();
dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG);
@@ -249,6 +248,7 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac
} else {
mDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG);
}
+ mDialog.setTitle(R.string.global_actions);
}