Yes that makes more sense. Sorry for causing confusion. Variable name
should definitely be renamed...

Steve
On Apr 1, 2013 9:53 AM, "Jared Woolston" <notifications@github.com> wrote:

> In library/src/com/slidingmenu/lib/SlidingMenu.java:
>
> > @@ -971,6 +985,7 @@ protected boolean fitSystemWindows(Rect insets) {
> >  	@TargetApi(Build.VERSION_CODES.HONEYCOMB)
> >  	public void manageLayers(float percentOpen) {
> >  		if (Build.VERSION.SDK_INT < 11) return;
> > +		if (!useHardwareAcceleration) return;
> >
> >  		boolean layer = percentOpen > 0.0f && percentOpen < 1.0f;
> >  		final int layerType = layer ? View.LAYER_TYPE_HARDWARE : View.LAYER_TYPE_NONE;
>
> This will disable hardware layers but not hardware acceleration (which is
> what I think he meant to say). They are two different things.
> … <#13dc5dfdbcec123a_>
> On Apr 1, 2013 5:34 AM, "Steve Garon" <notifications@github.com> wrote:
> In library/src/com/slidingmenu/lib/SlidingMenu.java: > @@ -971,6 +985,7 @@
> protected boolean fitSystemWindows(Rect insets) { >
> @TargetApi(Build.VERSION_CODES.HONEYCOMB) > public void manageLayers(float
> percentOpen) { > if (Build.VERSION.SDK_INT < 11) return; > + if
> (!useHardwareAcceleration) return; > > boolean layer = percentOpen > 0.0f
> && percentOpen < 1.0f; > final int layerType = layer ?
> View.LAYER_TYPE_HARDWARE : View.LAYER_TYPE_NONE; Well, jfeinstein10 was
> saying in an issues that someone reported from using web view with sliding
> menu to actually comment the whole manageLayer function to disable hardware
> acceleration. Therefore I just figure that quitting the function before it
> did anything would be just as good. It fixes the issue with web view for
> sure since I use it for my app and the checker board pattern disappeared
> when I turn it off. If your way of doing it works too, I'm perfectly
> comfortable with that also. Steve … <#13dc5979ad5e9ad6_> On Apr 1, 2013
> 3:06 AM, "Taylor H. Perkins" <notifications@github.com> wrote: In
> library/src/com/slidingmenu/lib/SlidingMenu.java: > @@ -971,6 +985,7 @@
> protected boolean fitSystemWindows(Rect insets) { >
> @TargetApi(Build.VERSION_CODES.HONEYCOMB) > public void manageLayers(float
> percentOpen) { > if (Build.VERSION.SDK_INT < 11) return; > + if
> (!useHardwareAcceleration) return; > > boolean layer = percentOpen > 0.0f
> && percentOpen < 1.0f; > final int layerType = layer ?
> View.LAYER_TYPE_HARDWARE : View.LAYER_TYPE_NONE; I think, in lieu of the
> above this might be: final int layerType = layer && useHardwareAcceleration
> ? View.LAYER_TYPE_HARDWARE : View.LAYER_TYPE_NONE; — Reply to this email
> directly or view it on GitHub<
> https://github.com/jfeinstein10/SlidingMenu/pull/350/files#r3598684> . —
> Reply to this email directly or view it on GitHub<
> https://github.com/jfeinstein10/SlidingMenu/pull/350/files#r3600148> .
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/jfeinstein10/SlidingMenu/pull/350/files#r3600737>
> .
>