Merge "Add null check in Launcher onNewIntent() before moveToDefaultScreen()." into ub-launcher3-burnaby-polish

This commit is contained in:
Tony Wickham
2015-10-27 01:02:26 +00:00
committed by Android (Google) Code Review
+4 -2
View File
@@ -1921,7 +1921,7 @@ public class Launcher extends Activity
final View v = getWindow().peekDecorView();
if (v != null && v.getWindowToken() != null) {
InputMethodManager imm = (InputMethodManager)getSystemService(
InputMethodManager imm = (InputMethodManager) getSystemService(
INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(v.getWindowToken(), 0);
}
@@ -1960,7 +1960,9 @@ public class Launcher extends Activity
mWorkspace.post(new Runnable() {
@Override
public void run() {
mWorkspace.moveToDefaultScreen(true);
if (mWorkspace != null) {
mWorkspace.moveToDefaultScreen(true);
}
}
});
}