Skip to content

Loading…

timob-10086: Android: Window: Honeycomb - BackgroundColor of new window not shown when new window opened in a tab #3408

Merged
merged 1 commit into from

2 participants

@krowley krowley was assigned
@krowley

So far on master and 3_0_X I am unable to reproduce the original problem.
I'm using an Asus Transformer TF-101 running Android 3.1. I've tried both
test cases on those two branches, and I haven't seen the failure.

@krowley

I can reproduce the problem using SDK version 2.1.3 GA.

@krowley

I also tried this on an LG Honeycomb device, and I could not produce in master for the 3_0_X
branch. It seems very likely that the problem has been corrected by something else since
this pull request was submitted.

@krowley

OK, I can reproduce the problem now.

CR + FR OK, Approved.

@krowley krowley merged commit d84a15e into appcelerator:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 15 additions and 0 deletions.
  1. +15 −0 android/titanium/src/java/org/appcelerator/titanium/view/TiUIDecorView.java
View
15 android/titanium/src/java/org/appcelerator/titanium/view/TiUIDecorView.java
@@ -6,8 +6,11 @@
*/
package org.appcelerator.titanium.view;
+import org.appcelerator.titanium.TiC;
import org.appcelerator.titanium.proxy.DecorViewProxy;
+import android.os.Build;
+
public class TiUIDecorView extends TiUIView
{
@@ -17,4 +20,16 @@ public TiUIDecorView(DecorViewProxy decorViewProxy)
setNativeView(decorViewProxy.getLayout());
}
+
+ @Override
+ public void add(TiUIView child)
+ {
+ super.add(child);
+
+ // Honeycomb has issues to redraw the decor view after adding a child. (TIMOB-10126)
+ // So we force it to invalidate the decor view here.
+ if (Build.VERSION.SDK_INT >= TiC.API_LEVEL_HONEYCOMB && Build.VERSION.SDK_INT < TiC.API_LEVEL_ICE_CREAM_SANDWICH) {
+ getNativeView().postInvalidate();
+ }
+ }
}
Something went wrong with that request. Please try again.