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
17package com.android.quicksearchbox.ui;
18
19import com.android.quicksearchbox.R;
20import com.android.quicksearchbox.Source;
21
22import android.content.Context;
23import android.graphics.drawable.Drawable;
24import android.util.AttributeSet;
25import android.view.View;
26import android.widget.ImageButton;
27
28/**
29 * Finishes the containing activity on BACK, even if input method is showing.
30 */
31public class SearchActivityViewSinglePane extends SearchActivityView {
32
33    public SearchActivityViewSinglePane(Context context) {
34        super(context);
35    }
36
37    public SearchActivityViewSinglePane(Context context, AttributeSet attrs) {
38        super(context, attrs);
39    }
40
41    public SearchActivityViewSinglePane(Context context, AttributeSet attrs, int defStyle) {
42        super(context, attrs, defStyle);
43    }
44
45    @Override
46    public void onResume() {
47        focusQueryTextView();
48    }
49
50    @Override
51    public void considerHidingInputMethod() {
52        mQueryTextView.hideInputMethod();
53    }
54
55    @Override
56    public void onStop() {
57    }
58
59}
60