Skip to content

Commit c8be560

Browse files
timvpGoogleCommit Bot
authored andcommitted
Fix show_angle_in_use_dialog_box Global.Setting Name
The Global.Setting was previously named angle_in_use_dialog_box, which doesn't match some of the other variables and uses on the Android side. This change will update it to show_angle_in_use_dialog_box to make everything match both here and where it's used within Android. Bug: angleproject:3006 Test: Load an app with ANGLE enabled and verify dialog box is shown. Test: Load an app without ANGLE and verify dialog box is not shown. Change-Id: I808ebc94f706a019eca6f3911a702853642926e0 Reviewed-on: https://chromium-review.googlesource.com/c/1410286 Reviewed-by: Courtney Goeltzenleuchter <courtneygo@google.com> Commit-Queue: Tim Van Patten <timvp@google.com>
1 parent 5f82dde commit c8be560

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

android/res/values/global_settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<resources>
99
<string name="global_settings_driver_all_angle">angle_gl_driver_all_angle</string>
10-
<string name="global_settings_angle_in_use_dialog_box">angle_in_use_dialog_box</string>
10+
<string name="global_settings_show_angle_in_use_dialog_box">show_angle_in_use_dialog_box</string>
1111
<string name="global_settings_driver_selection_pkgs">angle_gl_driver_selection_pkgs</string>
1212
<string name="global_settings_driver_selection_values">angle_gl_driver_selection_values</string>
1313
</resources>

android/res/xml/main.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<android.support.v14.preference.SwitchPreference
2525
android:key="@string/pref_key_angle_in_use_dialog"
2626
android:title="@string/show_angle_in_use_dialog_box"
27-
android:summary="@string/global_settings_angle_in_use_dialog_box"
27+
android:summary="@string/global_settings_show_angle_in_use_dialog_box"
2828
android:defaultValue="false"
2929
android:enabled="true"/>
3030
</PreferenceCategory>

android/src/com/android/angle/common/GlobalSettings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Boolean getShowAngleInUseDialogBox()
5454
try
5555
{
5656
int showAngleInUseDialogBox = Settings.Global.getInt(contentResolver,
57-
mContext.getString(R.string.global_settings_angle_in_use_dialog_box));
57+
mContext.getString(R.string.global_settings_show_angle_in_use_dialog_box));
5858
return (showAngleInUseDialogBox == 1);
5959
}
6060
catch (Settings.SettingNotFoundException e)
@@ -74,7 +74,7 @@ static void updateShowAngleInUseDialog(Context context, Boolean showAngleInUseDi
7474
{
7575
ContentResolver contentResolver = context.getContentResolver();
7676
Settings.Global.putInt(contentResolver,
77-
context.getString(R.string.global_settings_angle_in_use_dialog_box),
77+
context.getString(R.string.global_settings_show_angle_in_use_dialog_box),
7878
showAngleInUseDialog ? 1 : 0);
7979
}
8080

0 commit comments

Comments
 (0)