summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaj Yengisetty <rajesh@cyngn.com>2015-03-24 21:05:40 (GMT)
committerRajesh Yengisetty <rajesh@cyngn.com>2015-03-25 19:18:54 (GMT)
commit4b60765caa363af235fd83de7c4747eeedc19087 (patch)
tree242f4d662c477fd01216707c5b50c34848eabe1b
parentd8bdb0eef3f1799e8b829bcf114f1c3573bce8d6 (diff)
downloadandroid_packages_apps_Trebuchet-4b60765caa363af235fd83de7c4747eeedc19087.zip
android_packages_apps_Trebuchet-4b60765caa363af235fd83de7c4747eeedc19087.tar.gz
android_packages_apps_Trebuchet-4b60765caa363af235fd83de7c4747eeedc19087.tar.bz2
Protected Apps: fix insets so that views stay above navbar
Change-Id: I78b5a212b66aa31b22d72a65af40452dd114fc35 (cherry picked from commit 19ee2fd1fdca875b734c44a40ea87b5a50f14e37)
-rw-r--r--src/com/android/launcher3/HiddenFolderFragment.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/launcher3/HiddenFolderFragment.java b/src/com/android/launcher3/HiddenFolderFragment.java
index 9ac592e..4b5314d 100644
--- a/src/com/android/launcher3/HiddenFolderFragment.java
+++ b/src/com/android/launcher3/HiddenFolderFragment.java
@@ -20,7 +20,9 @@ import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputMethodManager;
import android.widget.ArrayAdapter;
import android.widget.EditText;
+import android.widget.FrameLayout;
import android.widget.ImageView;
+import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;
@@ -115,6 +117,14 @@ public class HiddenFolderFragment extends Fragment {
mListView = (ListView) v.findViewById(R.id.hidden_apps_list);
mListView.setAdapter(mAppsAdapter);
+ // Apply insets
+ Launcher launcher = (Launcher) getActivity();
+ LinearLayout.LayoutParams llp =
+ (LinearLayout.LayoutParams) mListView.getLayoutParams();
+ llp.bottomMargin += ((FrameLayout.LayoutParams) launcher.getOverviewPanel()
+ .findViewById(R.id.settings_container).getLayoutParams()).bottomMargin;
+ mListView.setLayoutParams(llp);
+
return v;
}