mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 924480 - Part 1: Make search_container focusable before browser_toolbar. r=bnicholson
This commit is contained in:
parent
fdfe1edc34
commit
c7b9959e99
@ -387,6 +387,7 @@ public class BrowserToolbar extends GeckoRelativeLayout
|
||||
}
|
||||
|
||||
if (keyCode == KeyEvent.KEYCODE_BACK) {
|
||||
// Drop the virtual keyboard.
|
||||
clearFocus();
|
||||
return true;
|
||||
}
|
||||
|
@ -55,20 +55,25 @@
|
||||
android:layout_alignParentBottom="true">
|
||||
</RelativeLayout>
|
||||
|
||||
<org.mozilla.gecko.BrowserToolbar android:id="@+id/browser_toolbar"
|
||||
<FrameLayout android:id="@+id/search_container"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_below="@+id/browser_toolbar"
|
||||
android:background="@android:color/white"
|
||||
android:visibility="invisible"/>
|
||||
|
||||
<!-- When focus is cleared from from BrowserToolbar's EditText to
|
||||
lower the virtual keyboard, focus will be returned to the root
|
||||
view. To make sure the EditText is not the first focusable view in
|
||||
the root view, BrowserToolbar should be specified as low in the
|
||||
view hierarchy as possible. -->
|
||||
<org.mozilla.gecko.BrowserToolbar android:id="@id/browser_toolbar"
|
||||
style="@style/BrowserToolbar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="@dimen/browser_toolbar_height"
|
||||
android:clickable="true"
|
||||
android:focusable="true"/>
|
||||
|
||||
<FrameLayout android:id="@+id/search_container"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_below="@id/browser_toolbar"
|
||||
android:background="@android:color/white"
|
||||
android:visibility="invisible"/>
|
||||
|
||||
</view>
|
||||
|
||||
<LinearLayout android:id="@+id/toast"
|
||||
|
Loading…
Reference in New Issue
Block a user