From e79223ed415ca437aa5954f8bfdaf11309f6338a Mon Sep 17 00:00:00 2001 From: Anders Hammar1 Date: Fri, 14 Jan 2011 10:00:39 +0100 Subject: [PATCH] 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: I03ff59c7f4ff711a06b05de7cca94fa928cf67ef --- .../src/com/android/internal/policy/impl/GlobalActions.java | 4 ++-- 1 file 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 1f06dcc4c6f21..5e33f0535c49d 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); }