Files
app_Settings/res/layout/enable_supervision_dialog.xml
Rafael Prado 15ac1b67ae Handle request to enable supervision if the caller is the system supervision holder.
Shows a dialog asking the user to enable supervision, if the caller is the supervision holder, but not a profile owner.

Bug: 393418334
Bug: 418287696
Flag: android.app.supervision.flags.supervision_manager_apis
Test: atest EnableSupervisionActivityTest
Change-Id: I876b6406b17bf0197bcdb95e16f0e65f9588d6d8
2025-07-17 17:12:52 +00:00

44 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2025 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"
android:id="@+id/enable_supervision_dialog_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView android:id="@+id/supervision_activation_message"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:scrollbars = "vertical"
android:paddingStart="24dp"
android:paddingEnd="24dp"
android:paddingTop="12dp"
android:paddingBottom="6dp"
android:gravity="center_vertical"/>
<TextView android:id="@+id/supervision_activation_warning"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="24dp"
android:paddingEnd="24dp"
android:paddingTop="6dp"
android:paddingBottom="12dp"/>
</LinearLayout>