diff options
author | alk3pInjection <webmaster@raspii.tech> | 2022-05-07 14:54:09 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2022-05-07 15:53:40 +0800 |
commit | d33162fc94e2c6ad1b27274614303f7d75dab26d (patch) | |
tree | b062085095c1bd38b5f61309ca91050e12cae6d0 | |
parent | fe0a43f11d26ddb3b78c79b0a9eaf6c7c447bc20 (diff) |
Launcher3: Remove 3x3 workspace grid option
* makes no sense
Change-Id: I8f2d6f835e92ea5de6ea64fb82b3f2b88348c8a2
-rw-r--r-- | res/xml/default_workspace_3x3.xml | 71 | ||||
-rw-r--r-- | res/xml/device_profiles.xml | 29 | ||||
-rw-r--r-- | src/com/android/launcher3/LauncherFiles.java | 6 |
3 files changed, 1 insertions, 105 deletions
diff --git a/res/xml/default_workspace_3x3.xml b/res/xml/default_workspace_3x3.xml deleted file mode 100644 index 31376e1d5e..0000000000 --- a/res/xml/default_workspace_3x3.xml +++ /dev/null @@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2015 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. ---> - -<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"> - - <!-- Hotseat (We use the screen as the position of the item in the hotseat) --> - <!-- Messaging, [All Apps], Dialer --> - - <resolve - launcher:container="-101" - launcher:screen="0" - launcher:x="0" - launcher:y="0" > - <favorite launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_MESSAGING;end" /> - <favorite launcher:uri="sms:" /> - <favorite launcher:uri="smsto:" /> - <favorite launcher:uri="mms:" /> - <favorite launcher:uri="mmsto:" /> - </resolve> - - <!-- All Apps --> - - <resolve - launcher:container="-101" - launcher:screen="2" - launcher:x="2" - launcher:y="0" > - <favorite launcher:uri="#Intent;action=android.intent.action.DIAL;end" /> - <favorite launcher:uri="tel:123" /> - <favorite launcher:uri="#Intent;action=android.intent.action.CALL_BUTTON;end" /> - </resolve> - - <!-- Bottom row --> - <resolve - launcher:screen="0" - launcher:x="0" - launcher:y="-1" > - <favorite launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_EMAIL;end" /> - <favorite launcher:uri="mailto:" /> - </resolve> - - <resolve - launcher:screen="0" - launcher:x="1" - launcher:y="-1" > - <favorite launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_GALLERY;end" /> - <favorite launcher:uri="#Intent;type=images/*;end" /> - </resolve> - - <resolve - launcher:screen="0" - launcher:x="2" - launcher:y="-1" > - <favorite launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_MARKET;end" /> - <favorite launcher:uri="market://details?id=com.android.launcher" /> - </resolve> - -</favorites> diff --git a/res/xml/device_profiles.xml b/res/xml/device_profiles.xml index 53872d240a..3e9fcac8b9 100644 --- a/res/xml/device_profiles.xml +++ b/res/xml/device_profiles.xml @@ -18,35 +18,6 @@ <profiles xmlns:launcher="http://schemas.android.com/apk/res-auto" > <grid-option - launcher:name="3_by_3" - launcher:numRows="3" - launcher:numColumns="3" - launcher:numFolderRows="2" - launcher:numFolderColumns="3" - launcher:numHotseatIcons="3" - launcher:dbFile="launcher_3_by_3.db" - launcher:defaultLayoutId="@xml/default_workspace_3x3" - launcher:deviceCategory="phone|multi_display" > - - <display-option - launcher:name="Super Short Stubby" - launcher:minWidthDps="255" - launcher:minHeightDps="300" - launcher:iconImageSize="48" - launcher:iconTextSize="13.0" - launcher:canBeDefault="true" /> - - <display-option - launcher:name="Shorter Stubby" - launcher:minWidthDps="255" - launcher:minHeightDps="400" - launcher:iconImageSize="48" - launcher:iconTextSize="13.0" - launcher:canBeDefault="true" /> - - </grid-option> - - <grid-option launcher:name="4_by_5" launcher:numRows="5" launcher:numColumns="4" diff --git a/src/com/android/launcher3/LauncherFiles.java b/src/com/android/launcher3/LauncherFiles.java index 33f2843d1d..583640eddc 100644 --- a/src/com/android/launcher3/LauncherFiles.java +++ b/src/com/android/launcher3/LauncherFiles.java @@ -19,8 +19,6 @@ public class LauncherFiles { public static final String LAUNCHER_6_BY_5_DB = "launcher_6_by_5.db"; public static final String LAUNCHER_5_BY_6_DB = "launcher_5_by_6.db"; public static final String LAUNCHER_4_BY_5_DB = "launcher_4_by_5.db"; - public static final String LAUNCHER_3_BY_3_DB = "launcher_3_by_3.db"; - public static final String LAUNCHER_2_BY_2_DB = "launcher_2_by_2.db"; public static final String BACKUP_DB = "backup.db"; public static final String SHARED_PREFERENCES_KEY = "com.android.launcher3.prefs"; public static final String MANAGED_USER_PREFERENCES_KEY = @@ -35,9 +33,7 @@ public class LauncherFiles { LAUNCHER_DB, LAUNCHER_6_BY_5_DB, LAUNCHER_5_BY_6_DB, - LAUNCHER_4_BY_5_DB, - LAUNCHER_3_BY_3_DB, - LAUNCHER_2_BY_2_DB)); + LAUNCHER_4_BY_5_DB)); public static final List<String> OTHER_FILES = Collections.unmodifiableList(Arrays.asList( BACKUP_DB, |