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

Commit 554e155a authored by Wang Han's avatar Wang Han Committed by Michael Bestas
Browse files

LineageParts: Drop Expanded Desktop feature

 * This conflicts with AOSP gestures implemention now, and
   the framework part is hard to port.

Change-Id: I81dd2f7d36a8bad07b1f7917fa67d29fca814f44
parent 669c2933
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
@@ -210,27 +210,6 @@
                android:resource="@string/summary_empty" />
        </activity-alias>

        <!-- Expanded Desktop settings (Display category) -->
        <activity-alias
            android:name=".applications.ExpandedDesktopSettings"
            android:label="@string/expanded_desktop_settings_title"
            android:targetActivity="PartsActivity">
            <intent-filter>
                <action android:name="com.android.settings.action.IA_SETTINGS" />
                <action android:name="org.lineageos.lineageparts.EXPANDED_DESKTOP_SETTINGS" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <meta-data
                android:name="com.android.settings.category"
                android:value="com.android.settings.category.ia.display" />
            <meta-data
                android:name="com.android.settings.order"
                android:value="13" />
            <meta-data
                android:name="com.android.settings.summary"
                android:resource="@string/expanded_desktop_settings_summary" />
        </activity-alias>

        <!-- Contributors Cloud (MyDeviceInfo category) -->
        <activity-alias
            android:name=".contributors.ContributorsCloudFragment"
+0 −34
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2012-2016 The CyanogenMod 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.
-->
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <FrameLayout
        android:id="@+id/expanded_desktop_prefs"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

    <ListView
        android:id="@+id/user_list_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:divider="@null"
        android:fastScrollEnabled="true" />

</RelativeLayout>
+0 −66
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2012-2016 The CyanogenMod 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:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:minHeight="?android:attr/listPreferredItemHeight"
    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
    android:paddingTop="8dp"
    android:paddingBottom="8dp">

    <ImageView
        android:id="@+id/app_icon"
        android:layout_width="@android:dimen/app_icon_size"
        android:layout_height="@android:dimen/app_icon_size"
        android:layout_marginEnd="8dp"
        android:scaleType="centerInside"
        android:contentDescription="@null" />

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:orientation="vertical">

        <TextView
            android:id="@+id/app_name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="2dp"
            android:layout_marginStart="8dp"
            android:textColor="?android:attr/textColorPrimary"
            android:textAppearance="@style/TextAppearance.Medium"
            android:singleLine="true"
            android:ellipsize="marquee"
            android:textAlignment="viewStart" />

        <Spinner
            android:id="@+id/app_mode"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />

    </LinearLayout>

    <ImageView
        android:id="@+id/state"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:scaleType="centerInside"
        android:src="@drawable/ic_expdesk_hide_none" />
</LinearLayout>
+0 −13
Original line number Diff line number Diff line
@@ -357,19 +357,6 @@
        <item>25</item>
    </string-array>

    <!-- Expanded desktop styles -->
    <string-array name="expanded_desktop_style_entries" translatable="false">
        <item>@string/expanded_desktop_style_hide_both</item>
        <item>@string/expanded_desktop_style_hide_status</item>
        <item>@string/expanded_desktop_style_hide_navigation</item>
    </string-array>

    <string-array name="expanded_desktop_style_values" translatable="false">
        <item>0</item>
        <item>1</item>
        <item>2</item>
    </string-array>

    <!-- Gestures - touchscreen gesture actions -->
    <string-array name="touchscreen_gesture_action_entries">
        <item>@string/touchscreen_gesture_action_do_nothing</item>
+0 −11
Original line number Diff line number Diff line
@@ -577,17 +577,6 @@
    <string name="auto_power_save_summary_off">Do not enable power save mode automatically</string>
    <string name="auto_power_save_never">Never</string>

    <!-- Applications: Expanded desktop -->
    <string name="expanded_desktop_settings_title">Expanded desktop</string>
    <string name="expanded_desktop_settings_summary">Expand your available desktop space by hiding the status bar, navigation bar, or both</string>
    <string name="expanded_desktop_options_title">Customization options</string>
    <string name="expanded_desktop_style_title">Expanded desktop style</string>
    <string name="expanded_desktop_style_hide_nothing">Hide nothing</string>
    <string name="expanded_desktop_style_hide_status">Hide status bar</string>
    <string name="expanded_desktop_style_hide_navigation">Hide navigation bar</string>
    <string name="expanded_desktop_style_hide_both">Hide both</string>
    <string name="expanded_desktop_nothing_to_show_text">Turn the switch off to customize your expanded desktop on a per-app basis</string>

    <!-- Applications: Long screen -->
    <string name="long_screen_settings_title">Full screen apps</string>
    <string name="long_screen_settings_summary">Force legacy apps to use full screen aspect ratio</string>
Loading