Merge "Fix NPE for real" into jb-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c9c23196a1
@ -714,7 +714,9 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener
|
|||||||
public void handleSwipe(View view) {
|
public void handleSwipe(View view) {
|
||||||
TaskDescription ad = ((ViewHolder) view.getTag()).taskDescription;
|
TaskDescription ad = ((ViewHolder) view.getTag()).taskDescription;
|
||||||
if (ad == null) {
|
if (ad == null) {
|
||||||
Log.v(TAG, "Not able to find activity description for swiped task");
|
Log.v(TAG, "Not able to find activity description for swiped task; view=" + view +
|
||||||
|
" tag=" + view.getTag());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (DEBUG) Log.v(TAG, "Jettison " + ad.getLabel());
|
if (DEBUG) Log.v(TAG, "Jettison " + ad.getLabel());
|
||||||
mRecentTaskDescriptions.remove(ad);
|
mRecentTaskDescriptions.remove(ad);
|
||||||
|
Reference in New Issue
Block a user