summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherRootView.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2014-10-23 17:28:30 -0700
committerAdam Cohen <adamcohen@google.com>2014-10-24 11:47:30 -0700
commita6d0492e5f0dd4e1b43d4034a770241dc65f8f8c (patch)
tree7f9283954397d3b21703b849b5c70b17b553bb25 /src/com/android/launcher3/LauncherRootView.java
parent4a080dcadd532dd259de596729a1cd6e949bdae4 (diff)
downloadandroid_packages_apps_Trebuchet-a6d0492e5f0dd4e1b43d4034a770241dc65f8f8c.tar.gz
android_packages_apps_Trebuchet-a6d0492e5f0dd4e1b43d4034a770241dc65f8f8c.tar.bz2
android_packages_apps_Trebuchet-a6d0492e5f0dd4e1b43d4034a770241dc65f8f8c.zip
Allow LauncherOverlay to access and manage insets
Change-Id: Ib9faf37eb22ad2a0b18c076978ec9f2fd8864c0c
Diffstat (limited to 'src/com/android/launcher3/LauncherRootView.java')
-rw-r--r--src/com/android/launcher3/LauncherRootView.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/com/android/launcher3/LauncherRootView.java b/src/com/android/launcher3/LauncherRootView.java
new file mode 100644
index 000000000..e8c11c48b
--- /dev/null
+++ b/src/com/android/launcher3/LauncherRootView.java
@@ -0,0 +1,17 @@
+package com.android.launcher3;
+
+import android.content.Context;
+import android.graphics.Rect;
+import android.util.AttributeSet;
+
+public class LauncherRootView extends InsettableFrameLayout {
+ public LauncherRootView(Context context, AttributeSet attrs) {
+ super(context, attrs);
+ }
+
+ @Override
+ protected boolean fitSystemWindows(Rect insets) {
+ setInsets(insets);
+ return true; // I'll take it from here
+ }
+} \ No newline at end of file