mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 18:28:20 +00:00
am d74389d9: Merge "Add null pointer checks to fix NPEs" into jb-dev
* commit 'd74389d9027a128da85be151670ee43e55feaba5': Add null pointer checks to fix NPEs
This commit is contained in:
@@ -923,7 +923,9 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
|
||||
|
||||
private void onCloseComplete() {
|
||||
DragLayer parent = (DragLayer) getParent();
|
||||
parent.removeView(this);
|
||||
if (parent != null) {
|
||||
parent.removeView(this);
|
||||
}
|
||||
mDragController.removeDropTarget((DropTarget) this);
|
||||
clearFocus();
|
||||
mFolderIcon.requestFocus();
|
||||
|
||||
@@ -169,6 +169,7 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
|
||||
if (intent.getAction() == null) {
|
||||
intent.setAction(Intent.ACTION_VIEW);
|
||||
} else if (intent.getAction().equals(Intent.ACTION_MAIN) &&
|
||||
intent.getCategories() != null &&
|
||||
intent.getCategories().contains(Intent.CATEGORY_LAUNCHER)) {
|
||||
intent.addFlags(
|
||||
Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
|
||||
|
||||
Reference in New Issue
Block a user