Skip to content

Commit

Permalink
SystemUI: Fix NavRing inflate
Browse files Browse the repository at this point in the history
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
Zaphod-Beeblebrox committed Oct 19, 2012
1 parent 0020fa5 commit 7e40d59
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -812,7 +812,7 @@ public void reorient() {
@Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
super.onLayout(changed, l, t, r, b);
mDelegateHelper.setInitialTouchRegion(getHomeButton(), getBackButton(), getRecentsButton());
mDelegateHelper.setInitialTouchRegion(this);
}

@Override
Expand Down

0 comments on commit 7e40d59

Please sign in to comment.