DivestOS/Patches/LineageOS-14.1/android_packages_apps_Settings/201113.patch

40 lines
1.4 KiB
Diff

From 04cfd27db79e5ca78e03c64c82144261f92cc365 Mon Sep 17 00:00:00 2001
From: syphyr <syphyr@gmail.com>
Date: Wed, 3 Jan 2018 20:15:17 +0100
Subject: [PATCH] wifi: Add world regulatory domain country code
The World Regulatory Domain is the default country code used
for many wifi only devices. Adding this country code
provides a way to reselect this option if it is changed in
the wifi regional settings.
Also, adding this regional wifi option will fix the issue with
the wifi regional settings appearing to be "unselected" when
World Regulatory Domain is the default.
Change-Id: I2e519872954903575ac2fc47fa13d126bb5bac8e
---
res/values/cm_arrays.xml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/res/values/cm_arrays.xml b/res/values/cm_arrays.xml
index 476b1c22ef..914c0b4fc3 100644
--- a/res/values/cm_arrays.xml
+++ b/res/values/cm_arrays.xml
@@ -268,6 +268,7 @@
<!-- Wi-Fi settings. Presented as a list dialog to the user to choose the Wi-Fi region code. -->
<string-array name="wifi_countrycode_entries">
+ <item>World Regulatory Domain</item>
<item>United States</item>
<item>Canada, Taiwan</item>
<item>Germany</item>
@@ -283,6 +284,7 @@
</string-array>
<string-array name="wifi_countrycode_values" translatable="false">
+ <item>00</item>
<item>US</item>
<item>CA</item>
<item>DE</item>