Merge "Move the Location time zone detection setting"
This commit is contained in:
@@ -52,6 +52,14 @@
|
||||
settings:userRestriction="no_config_date_time"
|
||||
settings:keywords="@string/keywords_time_zone"/>
|
||||
|
||||
<!-- This preference gets removed if location-based time zone detection is not supported -->
|
||||
<com.android.settingslib.RestrictedPreference
|
||||
android:key="location_time_zone_detection"
|
||||
android:title="@string/location_time_zone_detection_screen_title"
|
||||
settings:controller="com.android.settings.datetime.LocationTimeZoneDetectionPreferenceController"
|
||||
android:fragment="com.android.settings.datetime.locationtimezone.TimeZoneDetectionSettings"
|
||||
settings:userRestriction="no_config_date_time"/>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="time_format_preference_category"
|
||||
android:title="@string/time_format_category_title"
|
||||
|
@@ -65,13 +65,6 @@
|
||||
settings:forWork="true"
|
||||
settings:useAdminDisabledSummary="true"/>
|
||||
|
||||
<!-- This preference gets removed if location-based time zone detection is not supported -->
|
||||
<Preference
|
||||
android:key="location_time_zone_detection"
|
||||
android:title="@string/location_time_zone_detection_screen_title"
|
||||
settings:controller="com.android.settings.location.LocationTimeZoneDetectionPreferenceController"
|
||||
android:fragment="com.android.settings.location.TimeZoneDetectionSettings" />
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="location_services"
|
||||
android:layout="@layout/preference_category_no_label"
|
||||
|
@@ -51,13 +51,6 @@
|
||||
android:fragment="com.android.settings.location.ScanningSettings"
|
||||
settings:controller="com.android.settings.location.LocationScanningPreferenceController"/>
|
||||
|
||||
<!-- This preference gets removed if location-based time zone detection is not supported -->
|
||||
<Preference
|
||||
android:key="location_time_zone_detection"
|
||||
android:title="@string/location_time_zone_detection_screen_title"
|
||||
settings:controller="com.android.settings.location.LocationTimeZoneDetectionPreferenceController"
|
||||
android:fragment="com.android.settings.location.TimeZoneDetectionSettings" />
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="location_services"
|
||||
android:layout="@layout/preference_category_no_label"
|
||||
|
@@ -22,7 +22,7 @@
|
||||
<SwitchPreference
|
||||
android:title="@string/location_time_zone_detection_enabled_title"
|
||||
android:summary="@string/location_time_zone_detection_enabled_description"
|
||||
settings:controller="com.android.settings.location.TimeZoneDetectionTogglePreferenceController"
|
||||
settings:controller="com.android.settings.datetime.locationtimezone.TimeZoneDetectionTogglePreferenceController"
|
||||
android:key="location_time_zone_detection_enabled" />
|
||||
|
||||
</PreferenceScreen>
|
||||
|
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.android.settings.location;
|
||||
package com.android.settings.datetime;
|
||||
|
||||
import static android.app.time.TimeZoneCapabilities.CAPABILITY_NOT_ALLOWED;
|
||||
import static android.app.time.TimeZoneCapabilities.CAPABILITY_NOT_APPLICABLE;
|
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.android.settings.location;
|
||||
package com.android.settings.datetime.locationtimezone;
|
||||
|
||||
import android.app.settings.SettingsEnums;
|
||||
|
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.settings.location;
|
||||
package com.android.settings.datetime.locationtimezone;
|
||||
|
||||
import android.app.time.TimeManager;
|
||||
import android.app.time.TimeZoneCapabilitiesAndConfig;
|
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.settings.location;
|
||||
package com.android.settings.datetime;
|
||||
|
||||
import static android.app.time.TimeZoneCapabilities.CAPABILITY_NOT_APPLICABLE;
|
||||
import static android.app.time.TimeZoneCapabilities.CAPABILITY_NOT_SUPPORTED;
|
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.settings.location;
|
||||
package com.android.settings.datetime.locationtimezone;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.android.settings.location;
|
||||
package com.android.settings.datetime.locationtimezone;
|
||||
|
||||
import static android.app.time.TimeZoneCapabilities.CAPABILITY_NOT_APPLICABLE;
|
||||
import static android.app.time.TimeZoneCapabilities.CAPABILITY_POSSESSED;
|
Reference in New Issue
Block a user