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

Commit 18f99d91 authored by Jason Monk's avatar Jason Monk
Browse files

Material design for screen pinning cling

Switching from a dialog to a cling-like view to be more material.
Also moving it into SysUI as it highlights the buttons in nav bar.
This will be triggered directly from recents, but from apps it
will be triggered by the PhoneStatusBar.  In the case that apps
trigger the request, there will be a 'no thanks' button so that
users can refuse.

Bug: 16957435
Change-Id: Ie880f82c66f4b2be98283ed3fa789703c4bd7ed5
parent 5565cb42
Loading
Loading
Loading
Loading
+0 −36
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/* //device/apps/common/res/layout/alert_dialog.xml
**
** Copyright 2014, 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.
*/
-->
<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingTop="15dip"
    android:paddingBottom="0dip"
    android:paddingStart="12dip"
    android:paddingEnd="25dip"
    >

    <CheckBox
        android:id="@+id/lock_to_app_checkbox"
        style="?android:attr/textAppearanceMedium"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

</FrameLayout>
+0 −10
Original line number Diff line number Diff line
@@ -4853,16 +4853,6 @@
    <string name="lock_to_app_toast_accessible">To unpin this screen, touch and hold Overview.</string>
    <!-- Notify user that they are locked in lock-to-app mode -->
    <string name="lock_to_app_toast_locked">Screen is pinned. Unpinning isn\'t allowed by your organization.</string>
    <!-- Lock-to-app dialog title. -->
    <string name="lock_to_app_title">Use screen pinning?</string>
    <!-- Lock-to-app dialog description. -->
    <string name="lock_to_app_description">Screen pinning locks the display in a single view.\n\nTo unpin, touch and hold Back and Overview at the same time.</string>
    <!-- Lock-to-app dialog description when in accessibility mode. -->
    <string name="lock_to_app_description_accessible">Screen pinning locks the display in a single view.\n\nTo unpin, touch and hold Overview.</string>
    <!-- Lock-to-app negative response. -->
    <string name="lock_to_app_negative">NO, THANKS</string>
    <!-- Lock-to-app positive response. -->
    <string name="lock_to_app_positive">START</string>
    <!-- Starting lock-to-app indication. -->
    <string name="lock_to_app_start">Screen pinned</string>
    <!-- Exting lock-to-app indication. -->
+0 −7
Original line number Diff line number Diff line
@@ -667,13 +667,6 @@
  <java-symbol type="string" name="lock_to_app_toast" />
  <java-symbol type="string" name="lock_to_app_toast_accessible" />
  <java-symbol type="string" name="lock_to_app_toast_locked" />
  <java-symbol type="string" name="lock_to_app_title" />
  <java-symbol type="string" name="lock_to_app_description" />
  <java-symbol type="string" name="lock_to_app_description_accessible" />
  <java-symbol type="string" name="lock_to_app_negative" />
  <java-symbol type="string" name="lock_to_app_positive" />
  <java-symbol type="layout" name="lock_to_app_checkbox" />
  <java-symbol type="id" name="lock_to_app_checkbox" />
  <java-symbol type="string" name="lock_to_app_start" />
  <java-symbol type="string" name="lock_to_app_exit" />
  <java-symbol type="string" name="lock_to_app_unlock_pin" />
+28 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
 * Copyright 2014, 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.
 */
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="oval" >

    <solid android:color="@color/system_accent_color" />

    <size
        android:height="@dimen/screen_pinning_nav_highlight_size"
        android:width="@dimen/screen_pinning_nav_highlight_size" />

</shape>
+28 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
 * Copyright 2014, 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.
 */
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="oval" >

    <solid android:color="@color/screen_pinning_nav_icon_highlight_outer" />

    <size
        android:height="@dimen/screen_pinning_nav_highlight_outer_size"
        android:width="@dimen/screen_pinning_nav_highlight_outer_size" />

</shape>
Loading