Merge "Show IME when search query != null after rotation" into ub-launcher3-calgary-polish

This commit is contained in:
Hyunyoung Song
2016-09-09 22:13:33 +00:00
committed by Android (Google) Code Review
4 changed files with 37 additions and 6 deletions

View File

@@ -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;
@@ -52,7 +53,6 @@ import com.android.launcher3.dragndrop.DragOptions;
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;
@@ -708,4 +708,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());
}
}