From a6d0492e5f0dd4e1b43d4034a770241dc65f8f8c Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Thu, 23 Oct 2014 17:28:30 -0700 Subject: Allow LauncherOverlay to access and manage insets Change-Id: Ib9faf37eb22ad2a0b18c076978ec9f2fd8864c0c --- src/com/android/launcher3/LauncherRootView.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/com/android/launcher3/LauncherRootView.java (limited to 'src/com/android/launcher3/LauncherRootView.java') 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 -- cgit v1.2.3