NullPointerException on activity in onDismiss
authorMichal Szynkaruk <michal.szynkaruk@sonymobile.com>
Wed, 10 Jun 2015 16:27:04 +0000 (18:27 +0200)
committerZoran Jovanovic <zoran.jovanovic@sonymobile.com>
Wed, 16 Dec 2015 15:15:17 +0000 (16:15 +0100)
commit9a49799c782b632533316ef7f9d6e446c31eb512
treea1716e95a2a71e068f6a06e9f9c0415d688685e1
parent4920a49117cc2bf7df4093a00bbf108c675a25ed
NullPointerException on activity in onDismiss

Problem: getActivity() returns NULL after
the dialog fragment has been removed.
Solution: Add a null check for the activity
to which the dialogfragment is attached.

Change-Id: I32c8784b15b6f179d13071b508d6cd9d2013ebc3
ui/src/com/android/providers/downloads/ui/TrampolineActivity.java