summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/allapps/AllAppsContainerView.java
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2016-09-09 15:02:20 -0700
committerHyunyoung Song <hyunyoungs@google.com>2016-09-09 15:02:20 -0700
commitc2fe1147f9802d581d1e0c1da4dcaaf8ebdfa939 (patch)
tree37f0b7e9e5f0a24884804fd1672090fe4ba6a711 /src/com/android/launcher3/allapps/AllAppsContainerView.java
parent61bcfba33598ddd0bc59910ab758fcd51d770502 (diff)
downloadpackages_apps_Trebuchet-c2fe1147f9802d581d1e0c1da4dcaaf8ebdfa939.tar.gz
packages_apps_Trebuchet-c2fe1147f9802d581d1e0c1da4dcaaf8ebdfa939.tar.bz2
packages_apps_Trebuchet-c2fe1147f9802d581d1e0c1da4dcaaf8ebdfa939.zip
Show IME when search query != null after rotation
Change-Id: Ia35fba140a5addc21bf347cd63b72dc4e357421e
Diffstat (limited to 'src/com/android/launcher3/allapps/AllAppsContainerView.java')
-rw-r--r--src/com/android/launcher3/allapps/AllAppsContainerView.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java
index a8e2140c2..4e1936f17 100644
--- a/src/com/android/launcher3/allapps/AllAppsContainerView.java
+++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java
@@ -25,6 +25,7 @@ import android.text.Selection;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.SpannableStringBuilder;
+import android.text.TextUtils;
import android.text.method.TextKeyListener;
import android.util.AttributeSet;
import android.view.KeyEvent;
@@ -51,7 +52,6 @@ import com.android.launcher3.config.FeatureFlags;
import com.android.launcher3.folder.Folder;
import com.android.launcher3.graphics.TintedDrawableSpan;
import com.android.launcher3.keyboard.FocusedItemDecorator;
-import com.android.launcher3.userevent.nano.LauncherLogProto;
import com.android.launcher3.userevent.nano.LauncherLogProto.Target;
import com.android.launcher3.util.ComponentKey;
@@ -707,4 +707,8 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
public void fillInLaunchSourceData(View v, ItemInfo info, Target target, Target targetParent) {
targetParent.containerType = mAppsRecyclerView.getContainerType(v);
}
+
+ public boolean shouldRestoreImeState() {
+ return !TextUtils.isEmpty(mSearchInput.getText());
+ }
}