summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Chan <jc@lineageos.org>2020-05-19 14:01:25 +0800
committeralk3pInjection <webmaster@raspii.tech>2022-03-06 20:50:12 +0800
commita1fa52959667c9c3299e328f6a12e4c8a3e03a07 (patch)
tree53c5e412c99076083681b5676360789e08ec8987
parenta02c06bdb92d8bd53a8300fdcab95cbe369c6f9a (diff)
ice: Implement hide gestural navigation hint bar
Change-Id: I5ed5c55ec46c3bb5e91aeb88bd5f06bd4445c2f0 Signed-off-by: Jesse Chan <jc@lineageos.org>
-rw-r--r--overlay/ICENavigationBarNoHintOverlay/Android.bp21
-rw-r--r--overlay/ICENavigationBarNoHintOverlay/AndroidManifest.xml23
-rw-r--r--overlay/ICENavigationBarNoHintOverlay/res/values/dimens.xml13
-rw-r--r--overlay/overlays.mk1
4 files changed, 58 insertions, 0 deletions
diff --git a/overlay/ICENavigationBarNoHintOverlay/Android.bp b/overlay/ICENavigationBarNoHintOverlay/Android.bp
new file mode 100644
index 0000000..43c2d73
--- /dev/null
+++ b/overlay/ICENavigationBarNoHintOverlay/Android.bp
@@ -0,0 +1,21 @@
+//
+// Copyright (C) 2022 Project ICE
+//
+// 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.
+//
+
+runtime_resource_overlay {
+ name: "ICENavigationBarNoHintOverlay",
+ product_specific: true,
+ sdk_version: "current",
+}
diff --git a/overlay/ICENavigationBarNoHintOverlay/AndroidManifest.xml b/overlay/ICENavigationBarNoHintOverlay/AndroidManifest.xml
new file mode 100644
index 0000000..ecd1481
--- /dev/null
+++ b/overlay/ICENavigationBarNoHintOverlay/AndroidManifest.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2022 Project ICE
+
+ 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.
+-->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="android.ice.overlay.hidenav">
+
+ <overlay
+ android:priority="1"
+ android:targetPackage="android" />
+</manifest>
diff --git a/overlay/ICENavigationBarNoHintOverlay/res/values/dimens.xml b/overlay/ICENavigationBarNoHintOverlay/res/values/dimens.xml
new file mode 100644
index 0000000..f389f83
--- /dev/null
+++ b/overlay/ICENavigationBarNoHintOverlay/res/values/dimens.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * SPDX-License-Identifier: Apache-2.0
+ * Copyright (C) 2020 The LineageOS Project
+-->
+<resources>
+ <!-- Height of the bottom navigation / system bar. -->
+ <dimen name="navigation_bar_height">0dp</dimen>
+ <!-- Height of the bottom navigation bar in portrait; often the same as @dimen/navigation_bar_height -->
+ <dimen name="navigation_bar_height_landscape">0dp</dimen>
+ <!-- Width of the navigation bar when it is placed vertically on the screen -->
+ <dimen name="navigation_bar_width">0dp</dimen>
+</resources>
diff --git a/overlay/overlays.mk b/overlay/overlays.mk
index ab594e8..255125b 100644
--- a/overlay/overlays.mk
+++ b/overlay/overlays.mk
@@ -18,6 +18,7 @@
PRODUCT_PACKAGES += \
ICEFrameworksOverlay \
ICELauncher3Overlay \
+ ICENavigationBarNoHintOverlay \
ICENetworkStackOverlay \
ICESettingsOverlay \
ICESettingsProviderOverlay \