From 2bfa4d469a271c9e43a9e4c55a8da3c0a203acb8 Mon Sep 17 00:00:00 2001 From: Tony Mak Date: Fri, 15 Dec 2017 11:38:11 +0000 Subject: [PATCH] Make work footer stick to the bottom if there are only a few apps #2 1. Move the work footer divider into the container, so it is translated with the rest of the footer. 2. Fixed the scrollbar issue in work tab by putting the footer height in AllAppsRecyclerView 3. We planned to drop the company name, and decided to use "Managed by your organisation". 4. Rename WorkModeToggleContainer to WorkFooterContainer as we are using work footer in else where. BUG: 70571983 Change-Id: I218fe7d9970780a1a457ee450f1a32e7a46d9766 --- res/layout/work_tab_footer.xml | 19 +++++++++++++++---- res/values/strings.xml | 2 ++ .../launcher3/allapps/AllAppsGridAdapter.java | 4 ---- .../allapps/AllAppsRecyclerView.java | 2 ++ .../allapps/AlphabeticalAppsList.java | 1 - ...ontainer.java => WorkFooterContainer.java} | 10 +++++----- 6 files changed, 24 insertions(+), 14 deletions(-) rename src/com/android/launcher3/views/{WorkModeToggleContainer.java => WorkFooterContainer.java} (82%) diff --git a/res/layout/work_tab_footer.xml b/res/layout/work_tab_footer.xml index 64c95e3fc3..2606b87a10 100644 --- a/res/layout/work_tab_footer.xml +++ b/res/layout/work_tab_footer.xml @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. --> - + + - - \ No newline at end of file + \ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index eca64c852b..d77065c11f 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -330,5 +330,7 @@ Find work apps here Each work app has an orange badge, which means it\'s kept secure by your organization. Work apps can be moved to your Home Screen for easier access. + + Managed by your organisation diff --git a/src/com/android/launcher3/allapps/AllAppsGridAdapter.java b/src/com/android/launcher3/allapps/AllAppsGridAdapter.java index da4d9f0cc2..246f7be10e 100644 --- a/src/com/android/launcher3/allapps/AllAppsGridAdapter.java +++ b/src/com/android/launcher3/allapps/AllAppsGridAdapter.java @@ -381,10 +381,6 @@ public class AllAppsGridAdapter extends RecyclerView.Adapter