From fa2987d3dcc1693080901df6d839351539a5043f Mon Sep 17 00:00:00 2001 From: Tad Date: Tue, 3 Apr 2018 10:56:28 -0400 Subject: [PATCH] 15.1: More fixes and cleanup --- .../0002-Remove_Logo.patch | 67 ------------------- .../0002-Remove_Logo.patch | 60 ----------------- .../default_workspace_4x4.xml | 64 ++++++++++++++++++ .../default_workspace_5x5.xml | 64 ++++++++++++++++++ .../default_workspace_5x6.xml | 64 ++++++++++++++++++ Scripts/LineageOS-14.1/Patch.sh | 1 - Scripts/LineageOS-15.1/Patch.sh | 5 +- 7 files changed, 196 insertions(+), 129 deletions(-) delete mode 100644 Patches/LineageOS-14.1/android_packages_apps_SetupWizard/0002-Remove_Logo.patch delete mode 100644 Patches/LineageOS-15.1/android_packages_apps_SetupWizard/0002-Remove_Logo.patch create mode 100644 Patches/LineageOS-15.1/android_packages_apps_Trebuchet/default_workspace/default_workspace_4x4.xml create mode 100644 Patches/LineageOS-15.1/android_packages_apps_Trebuchet/default_workspace/default_workspace_5x5.xml create mode 100644 Patches/LineageOS-15.1/android_packages_apps_Trebuchet/default_workspace/default_workspace_5x6.xml diff --git a/Patches/LineageOS-14.1/android_packages_apps_SetupWizard/0002-Remove_Logo.patch b/Patches/LineageOS-14.1/android_packages_apps_SetupWizard/0002-Remove_Logo.patch deleted file mode 100644 index 13b006b5..00000000 --- a/Patches/LineageOS-14.1/android_packages_apps_SetupWizard/0002-Remove_Logo.patch +++ /dev/null @@ -1,67 +0,0 @@ -From 049461e47bc551e19486a29e675e4da86551a29d Mon Sep 17 00:00:00 2001 -From: Tad -Date: Wed, 28 Mar 2018 01:12:50 -0400 -Subject: [PATCH] Remove logo, until we can replace it - -Change-Id: Id392a232b77120137438e150b2cec4b4094035cd ---- - res/layout/finish_activity.xml | 14 +------------- - res/layout/welcome_activity.xml | 12 ------------ - 2 files changed, 1 insertion(+), 25 deletions(-) - -diff --git a/res/layout/finish_activity.xml b/res/layout/finish_activity.xml -index 75472da..5d9ecd1 100644 ---- a/res/layout/finish_activity.xml -+++ b/res/layout/finish_activity.xml -@@ -32,18 +32,6 @@ - android:orientation="vertical" - android:background="@color/primary"> - -- -- -- - -@@ -56,4 +44,4 @@ - android:background="@drawable/reveal" - android:visibility="invisible"/> - -- -\ No newline at end of file -+ -diff --git a/res/layout/welcome_activity.xml b/res/layout/welcome_activity.xml -index 8495023..d277f87 100644 ---- a/res/layout/welcome_activity.xml -+++ b/res/layout/welcome_activity.xml -@@ -24,18 +24,6 @@ - android:orientation="vertical" - android:background="@color/primary"> - -- -- -- - --- -2.16.3 - diff --git a/Patches/LineageOS-15.1/android_packages_apps_SetupWizard/0002-Remove_Logo.patch b/Patches/LineageOS-15.1/android_packages_apps_SetupWizard/0002-Remove_Logo.patch deleted file mode 100644 index e5754a8c..00000000 --- a/Patches/LineageOS-15.1/android_packages_apps_SetupWizard/0002-Remove_Logo.patch +++ /dev/null @@ -1,60 +0,0 @@ -From e0a5af7041878bd5a80d6be1eb8eccd570a19431 Mon Sep 17 00:00:00 2001 -From: Tad -Date: Wed, 28 Mar 2018 01:14:59 -0400 -Subject: [PATCH] Remove logo, until we can replace it - -Change-Id: Ib5da1db39eef0b3ed9a43f499a67ffa14affb87a ---- - res/layout/finish_activity.xml | 12 ------------ - res/layout/welcome_activity.xml | 12 ------------ - 2 files changed, 24 deletions(-) - -diff --git a/res/layout/finish_activity.xml b/res/layout/finish_activity.xml -index ffa9968..5949e5b 100644 ---- a/res/layout/finish_activity.xml -+++ b/res/layout/finish_activity.xml -@@ -31,18 +31,6 @@ - android:orientation="vertical" - android:background="@color/primary"> - -- -- -- - -diff --git a/res/layout/welcome_activity.xml b/res/layout/welcome_activity.xml -index 8495023..d277f87 100644 ---- a/res/layout/welcome_activity.xml -+++ b/res/layout/welcome_activity.xml -@@ -24,18 +24,6 @@ - android:orientation="vertical" - android:background="@color/primary"> - -- -- -- - --- -2.16.3 - diff --git a/Patches/LineageOS-15.1/android_packages_apps_Trebuchet/default_workspace/default_workspace_4x4.xml b/Patches/LineageOS-15.1/android_packages_apps_Trebuchet/default_workspace/default_workspace_4x4.xml new file mode 100644 index 00000000..4c7e51f7 --- /dev/null +++ b/Patches/LineageOS-15.1/android_packages_apps_Trebuchet/default_workspace/default_workspace_4x4.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Patches/LineageOS-15.1/android_packages_apps_Trebuchet/default_workspace/default_workspace_5x5.xml b/Patches/LineageOS-15.1/android_packages_apps_Trebuchet/default_workspace/default_workspace_5x5.xml new file mode 100644 index 00000000..4c7e51f7 --- /dev/null +++ b/Patches/LineageOS-15.1/android_packages_apps_Trebuchet/default_workspace/default_workspace_5x5.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Patches/LineageOS-15.1/android_packages_apps_Trebuchet/default_workspace/default_workspace_5x6.xml b/Patches/LineageOS-15.1/android_packages_apps_Trebuchet/default_workspace/default_workspace_5x6.xml new file mode 100644 index 00000000..42c65cc9 --- /dev/null +++ b/Patches/LineageOS-15.1/android_packages_apps_Trebuchet/default_workspace/default_workspace_5x6.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Scripts/LineageOS-14.1/Patch.sh b/Scripts/LineageOS-14.1/Patch.sh index 0106fb52..79bedac9 100755 --- a/Scripts/LineageOS-14.1/Patch.sh +++ b/Scripts/LineageOS-14.1/Patch.sh @@ -135,7 +135,6 @@ sed -i 's/GSETTINGS_PROVIDER = "com.google.settings";/GSETTINGS_PROVIDER = "com. enterAndClear "packages/apps/SetupWizard" patch -p1 < $patches"android_packages_apps_SetupWizard/0001-Remove_Analytics.patch" #Remove the rest of CMStats -#patch -p1 < $patches"android_packages_apps_SetupWizard/0002-Remove_Logo.patch" #Remove Lineage logo until we can replace it enterAndClear "packages/apps/Trebuchet" cp -r $patches"android_packages_apps_Trebuchet/default_workspace/." "res/xml/"; diff --git a/Scripts/LineageOS-15.1/Patch.sh b/Scripts/LineageOS-15.1/Patch.sh index d1fadf8e..6d07937c 100755 --- a/Scripts/LineageOS-15.1/Patch.sh +++ b/Scripts/LineageOS-15.1/Patch.sh @@ -133,12 +133,15 @@ patch -p1 < $patches"android_packages_apps_Settings/0002-Remove_Analytics.patch" enterAndClear "packages/apps/SetupWizard" patch -p1 < $patches"android_packages_apps_SetupWizard/0001-Remove_Analytics.patch" #Remove analytics -#patch -p1 < $patches"android_packages_apps_SetupWizard/0002-Remove_Logo.patch" #Remove Lineage logo until we can replace it + +enterAndClear "packages/apps/Trebuchet" +cp -r $patches"android_packages_apps_Trebuchet/default_workspace/." "res/xml/"; enterAndClear "packages/apps/Updater" patch -p1 < $patches"android_packages_apps_Updater/0001-Server.patch" #Switch to our server enterAndClear "packages/apps/WallpaperPicker" +#TODO: Add back wallpapers sed -i 's/req.touchEnabled = touchEnabled;/req.touchEnabled = true;/' src/com/android/wallpaperpicker/WallpaperCropActivity.java; #Allow scrolling sed -i 's/mCropView.setTouchEnabled(req.touchEnabled);/mCropView.setTouchEnabled(true);/' src/com/android/wallpaperpicker/WallpaperCropActivity.java; sed -i 's/WallpaperUtils.EXTRA_WALLPAPER_OFFSET, 0);/WallpaperUtils.EXTRA_WALLPAPER_OFFSET, 0.5f);/' src/com/android/wallpaperpicker/WallpaperPickerActivity.java; #Center aligned by default