Skip to content

Commit b6e3476

Browse files
Anders Hammar1Johan Redestig
authored andcommitted
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
1 parent cb84275 commit b6e3476

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

policy/src/com/android/internal/policy/impl/GlobalActions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,7 @@ public boolean showBeforeProvisioning() {
221221
final AlertDialog.Builder ab = new AlertDialog.Builder(mContext);
222222

223223
ab.setAdapter(mAdapter, this)
224-
.setInverseBackgroundForced(true)
225-
.setTitle(R.string.global_actions);
224+
.setInverseBackgroundForced(true);
226225

227226
final AlertDialog dialog = ab.create();
228227
dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG);
@@ -249,6 +248,7 @@ private void prepareDialog() {
249248
} else {
250249
mDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG);
251250
}
251+
mDialog.setTitle(R.string.global_actions);
252252
}
253253

254254

0 commit comments

Comments
 (0)