Issue described:
--------------------------------------------------------------------
Issue:Virtual keypad " dances " if user launches starts serach while
you tube is playing.....please see attached video

Steps:
1.Start playing a youtube video with slider open
2.While the video is playing....press the search TSB..this launches
the search window
3.Close the slider and touch within the search box to launch the
virtual keypad.....note virtual keypad is launched but is dancing as
in the attached video
--------------------------------------------------------------------


We got the root cause analysis:
--------------------------------------------------------------------
This issue is newly introduced in Froyo, which did not exist in
Eclair.

In Froyo, the Search Dialog has been moved from system to application
context, and its window type has been changed from "TYPE_SEARCH_BAR"
in Eclair to "TYPE_APPLICATION".
Because of this change, the Search Dialog window will be taken into
account when the window manager decides whether to shown the status
bar(used to be ignored in Eclair, which should be correct case). Since
the search dialog window does not have the "FLAG_FULLSCREEN" flag that
hides the staus bar, while the application base window (Youtube
window) underneath does, the window manager shows the status bar first
and then hides it(repeats doing this for a few times) when there are
window re-layout requests coming, that is what the flicker is all
about.
--------------------------------------------------------------------


And we fix it as below updating:
--------------------------------------------------------------------
diff --git a/core/java/android/app/SearchDialog.java b/core/java/
android/app/SearchDialog.java
index 7625c04..2daf660 100644
--- a/core/java/android/app/SearchDialog.java
+++ b/core/java/android/app/SearchDialog.java
@@ -173,6 +173,7 @@ public class SearchDialog extends Dialog
implements OnItemClickListener, OnItemS

         Window theWindow = getWindow();
         WindowManager.LayoutParams lp = theWindow.getAttributes();
+        lp.type = WindowManager.LayoutParams.TYPE_SEARCH_BAR;
         lp.width = ViewGroup.LayoutParams.MATCH_PARENT;
         // taking up the whole window (even when transparent) is less
than ideal,
         // but necessary to show the popup window until the window
manager supports
--------------------------------------------------------------------


My question is:
1. Does Froyo team get similar issue from developers ?
2. Why Froyo team need such changes for Search Dialog ?
3. Did we get the right root cause ?
4. How will Froyo team resolve this problem ?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to