Merge "Add null check in Launcher onNewIntent() before moveToDefaultScreen()." into ub-launcher3-burnaby-polish
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user