Merge "Button for opening app from Safety settings page" into sc-dev am: d2e71827cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13984250 Change-Id: I39a3cca7bce2fd8a6de3df0a68bb8c34d8cddd3c
This commit is contained in:
35
res/layout/more_settings_button.xml
Normal file
35
res/layout/more_settings_button.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2021 The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<Button
|
||||
android:id="@+id/button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="20dip"
|
||||
android:layout_marginBottom="20dip"
|
||||
style="@style/ActionPrimaryButton"
|
||||
settings:allowDividerBelow="true"
|
||||
android:gravity="center" />
|
||||
|
||||
</LinearLayout>
|
@@ -32,6 +32,13 @@
|
||||
android:order="100"
|
||||
android:fragment="com.android.settings.emergency.EmergencyGestureSettings"
|
||||
settings:controller="com.android.settings.emergency.EmergencyGestureEntrypointPreferenceController" />
|
||||
<com.android.settingslib.widget.LayoutPreference
|
||||
android:key="more_settings"
|
||||
android:layout="@layout/more_settings_button"
|
||||
android:order="180"
|
||||
android:selectable="false"
|
||||
settings:allowDividerBelow="true"
|
||||
settings:controller="com.android.settings.emergency.MoreSettingsPreferenceController" />
|
||||
<com.android.settingslib.RestrictedPreference
|
||||
android:key="app_and_notif_cell_broadcast_settings"
|
||||
android:title="@string/cell_broadcast_settings"
|
||||
|
Reference in New Issue
Block a user