Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47f7263e authored by Anthony Alridge's avatar Anthony Alridge Committed by Android (Google) Code Review
Browse files

Merge "Show notification when work profile switched off"

parents c57c52b3 e567ca68
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -1836,6 +1836,27 @@ public final class DevicePolicyResources {
             */
            public static final String WORK_PROFILE_BADGED_LABEL =
                    PREFIX + "WORK_PROFILE_BADGED_LABEL";

            /**
             * Notification title. This notification lets the user know that they will be unable to
             * receive phone calls or texts until the work profile is turned on.
             */
            public static final String WORK_PROFILE_TELEPHONY_PAUSED_TITLE =
                    PREFIX + "WORK_PROFILE_TELEPHONY_UNAVAILABLE_TITLE";

            /**
             * Notification text. This notification lets the user know that they will be unable to
             * receive phone calls or texts until the work profile is turned on.
             */
            public static final String WORK_PROFILE_TELEPHONY_PAUSED_BODY =
                    PREFIX + "WORK_PROFILE_TELEPHONY_UNAVAILABLE_BODY";

            /**
             * Label for notification button. This button lets the user turn the work profile on.
             */
            public static final String WORK_PROFILE_TELEPHONY_PAUSED_TURN_ON_BUTTON =
                    PREFIX + "TURN_ON_WORK_PROFILE_BUTTON_TEXT";

        }

        /**
+25 −0
Original line number Diff line number Diff line
<!--
     Copyright (C) 2016 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.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
        android:width="48dp"
        android:height="48dp"
        android:viewportWidth="48"
        android:viewportHeight="48"
        android:tint="?attr/colorControlNormal">
    <path
        android:fillColor="@android:color/white"
        android:pathData="M40.65,45.15 L28.9,33.45Q23.55,37.8 18.5,39.925Q13.45,42.05 8.6,42.05Q7.45,42.05 6.7,41.4Q5.95,40.75 5.95,39.75V33Q5.95,32.2 6.45,31.6Q6.95,31 7.7,30.85L13.65,29.55Q14.3,29.4 14.95,29.625Q15.6,29.85 16.1,30.4L20.85,35.3Q22.3,34.6 23.9,33.45Q25.5,32.3 26.75,31.3L3.2,7.7L5.35,5.55L42.8,43.05ZM18.1,36.75 L14.15,32.6Q14.15,32.6 14.15,32.6Q14.15,32.6 14.15,32.6L9,33.65Q9,33.65 9,33.65Q9,33.65 9,33.65V39Q9,39 9,39Q9,39 9,39Q11.25,38.9 13.65,38.3Q16.05,37.7 18.1,36.75ZM33.15,29.15 L31,27Q32.05,25.75 33.125,24.175Q34.2,22.6 35.05,21.3L30.05,16.25Q29.65,15.85 29.5,15.275Q29.35,14.7 29.5,14L30.8,7.75Q30.95,6.95 31.475,6.475Q32,6 32.7,6H39.7Q40.65,6 41.325,6.65Q42,7.3 42,8.25Q42,13.35 39.6,18.975Q37.2,24.6 33.15,29.15ZM36.45,18.45Q37.75,15.45 38.35,13.2Q38.95,10.95 38.9,9Q38.9,9 38.9,9Q38.9,9 38.9,9H33.6Q33.6,9 33.6,9Q33.6,9 33.6,9L32.45,14.45Q32.45,14.45 32.45,14.45Q32.45,14.45 32.45,14.45ZM36.45,18.45Q36.45,18.45 36.45,18.45Q36.45,18.45 36.45,18.45Q36.45,18.45 36.45,18.45Q36.45,18.45 36.45,18.45Q36.45,18.45 36.45,18.45Q36.45,18.45 36.45,18.45Q36.45,18.45 36.45,18.45Q36.45,18.45 36.45,18.45ZM18.1,36.75Q18.1,36.75 18.1,36.75Q18.1,36.75 18.1,36.75Q18.1,36.75 18.1,36.75Q18.1,36.75 18.1,36.75Q18.1,36.75 18.1,36.75Q18.1,36.75 18.1,36.75Q18.1,36.75 18.1,36.75Q18.1,36.75 18.1,36.75Z"/>
</vector>
+10 −0
Original line number Diff line number Diff line
@@ -556,6 +556,16 @@
    <!-- Title for the button that turns work profile on. To be used in a notification
        [CHAR LIMIT=NONE] -->
    <string name="personal_apps_suspended_turn_profile_on">Turn on</string>
    <!-- Notification title. This notification lets the user know that they will be unable to
     receive phone calls or texts until the work profile is turned on. [CHAR LIMIT=40] -->
    <string name="work_profile_telephony_paused_title">Calls and messages are off</string>
    <!-- Notification text. This notification lets the user know that they will be unable to
     receive phone calls or texts until the work profile is turned on. [CHAR LIMIT=NONE] -->
    <string name="work_profile_telephony_paused_text">You have paused work apps.
        You won\'t receive phone calls or text messages.</string>
    <!-- Label for notification button. This button lets the user turn the work profile on.
         [CHAR LIMIT=15]  -->
    <string name="work_profile_telephony_paused_turn_on_button">Unpause work apps</string>

    <!-- Display name for any time a piece of data refers to the owner of the phone. For example, this could be used in place of the phone's phone number. -->
    <string name="me">Me</string>
+4 −0
Original line number Diff line number Diff line
@@ -1190,6 +1190,9 @@
  <java-symbol type="string" name="personal_apps_suspension_soon_text" />
  <java-symbol type="string" name="personal_apps_suspension_text" />
  <java-symbol type="string" name="personal_apps_suspended_turn_profile_on" />
  <java-symbol type="string" name="work_profile_telephony_paused_title" />
  <java-symbol type="string" name="work_profile_telephony_paused_text" />
  <java-symbol type="string" name="work_profile_telephony_paused_turn_on_button" />
  <java-symbol type="string" name="notification_work_profile_content_description" />
  <java-symbol type="string" name="factory_reset_warning" />
  <java-symbol type="string" name="factory_reset_message" />
@@ -1410,6 +1413,7 @@

  <java-symbol type="drawable" name="btn_borderless_rect" />
  <java-symbol type="drawable" name="ic_phone" />
  <java-symbol type="drawable" name="ic_phone_disabled" />
  <java-symbol type="drawable" name="ic_bt_headphones_a2dp" />
  <java-symbol type="drawable" name="ic_bt_headset_hfp" />
  <java-symbol type="drawable" name="ic_bt_hearing_aid" />
+6 −0
Original line number Diff line number Diff line
@@ -396,5 +396,11 @@ message SystemMessage {
    // Note: this is a base ID, multiple notifications will be posted for each
    // abusive apps, with notification ID based off this ID.
    NOTE_ABUSIVE_BG_APPS_BASE = 0xc1b2508; // 203105544

    // Notify the user that dialer and sms functionality are unavailable whilst the apps are
    // paused in the work profile.
    // Package: android
    NOTE_ALL_MANAGED_SUBSCRIPTIONS_AND_MANAGED_PROFILE_OFF = 1006;

  }
}
Loading