Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

SystemUI: Fix NavRing inflate

NavRing is set to inflate on Home/Back/recents buttons by
default, since this is stock layout.
With custom Navbar, different button layouts can present conditions
where the NavRing either only inflates in limited areas (swipes) or not
at all (if no home/recents/back button was used.  This little
patch sets the entire NavBar as the delegate area so that  regardless
of the the buttons assigned, NavRing will still respond

Change-Id: I67e22bf6c02264d87a1b95cf3b51a8eee4c72453
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
  • Loading branch information...
commit 7e40d594ebda0340fc5bd862b1943fc565c52d41 1 parent 0020fa5
Mike Wilson authored October 19, 2012
2  packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
@@ -812,7 +812,7 @@ public void reorient() {
812 812
     @Override
813 813
     protected void onLayout(boolean changed, int l, int t, int r, int b) {
814 814
         super.onLayout(changed, l, t, r, b);
815  
-        mDelegateHelper.setInitialTouchRegion(getHomeButton(), getBackButton(), getRecentsButton());
  815
+        mDelegateHelper.setInitialTouchRegion(this);
816 816
     }
817 817
 
818 818
     @Override

Git Notes

review

Code-Review+2: Gergely Szell (sethyx) <sethyx@gmail.com>
Verified+1: Gergely Szell (sethyx) <sethyx@gmail.com>
Submitted-by: Gergely Szell (sethyx) <sethyx@gmail.com>
Submitted-at: Sun, 28 Oct 2012 23:29:08 +0000
Reviewed-on: http://gerrit.sudoservers.com/4236
Project: AOKP/frameworks_base
Branch: refs/heads/jb

0 notes on commit 7e40d59

Please sign in to comment.
Something went wrong with that request. Please try again.