1 /*
2  * Copyright (C) 2010 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.quicksearchbox.ui;
18 
19 import com.android.quicksearchbox.R;
20 import com.android.quicksearchbox.Source;
21 
22 import android.content.Context;
23 import android.graphics.drawable.Drawable;
24 import android.util.AttributeSet;
25 import android.view.View;
26 import android.widget.ImageButton;
27 
28 /**
29  * Finishes the containing activity on BACK, even if input method is showing.
30  */
31 public class SearchActivityViewSinglePane extends SearchActivityView {
32 
SearchActivityViewSinglePane(Context context)33     public SearchActivityViewSinglePane(Context context) {
34         super(context);
35     }
36 
SearchActivityViewSinglePane(Context context, AttributeSet attrs)37     public SearchActivityViewSinglePane(Context context, AttributeSet attrs) {
38         super(context, attrs);
39     }
40 
SearchActivityViewSinglePane(Context context, AttributeSet attrs, int defStyle)41     public SearchActivityViewSinglePane(Context context, AttributeSet attrs, int defStyle) {
42         super(context, attrs, defStyle);
43     }
44 
45     @Override
onResume()46     public void onResume() {
47         focusQueryTextView();
48     }
49 
50     @Override
considerHidingInputMethod()51     public void considerHidingInputMethod() {
52         mQueryTextView.hideInputMethod();
53     }
54 
55     @Override
onStop()56     public void onStop() {
57     }
58 
59 }
60