Merge "Allow Floating ActionModes in SearchDialog." into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fbb34dd8df
@@ -165,8 +165,6 @@ public class SearchDialog extends Dialog {
|
|||||||
setContentView(com.android.internal.R.layout.search_bar);
|
setContentView(com.android.internal.R.layout.search_bar);
|
||||||
|
|
||||||
// get the view elements for local access
|
// get the view elements for local access
|
||||||
SearchBar searchBar = (SearchBar) findViewById(com.android.internal.R.id.search_bar);
|
|
||||||
searchBar.setSearchDialog(this);
|
|
||||||
mSearchView = (SearchView) findViewById(com.android.internal.R.id.search_view);
|
mSearchView = (SearchView) findViewById(com.android.internal.R.id.search_view);
|
||||||
mSearchView.setIconified(false);
|
mSearchView.setIconified(false);
|
||||||
mSearchView.setOnCloseListener(mOnCloseListener);
|
mSearchView.setOnCloseListener(mOnCloseListener);
|
||||||
@@ -618,8 +616,6 @@ public class SearchDialog extends Dialog {
|
|||||||
*/
|
*/
|
||||||
public static class SearchBar extends LinearLayout {
|
public static class SearchBar extends LinearLayout {
|
||||||
|
|
||||||
private SearchDialog mSearchDialog;
|
|
||||||
|
|
||||||
public SearchBar(Context context, AttributeSet attrs) {
|
public SearchBar(Context context, AttributeSet attrs) {
|
||||||
super(context, attrs);
|
super(context, attrs);
|
||||||
}
|
}
|
||||||
@@ -628,18 +624,6 @@ public class SearchDialog extends Dialog {
|
|||||||
super(context);
|
super(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSearchDialog(SearchDialog searchDialog) {
|
|
||||||
mSearchDialog = searchDialog;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Don't allow action modes in a SearchBar, it looks silly.
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public ActionMode startActionModeForChild(View child, ActionMode.Callback callback) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ActionMode startActionModeForChild(
|
public ActionMode startActionModeForChild(
|
||||||
View child, ActionMode.Callback callback, int type) {
|
View child, ActionMode.Callback callback, int type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user