diff options
author | kaiyiz <kaiyiz@codeaurora.org> | 2014-04-02 14:08:31 +0800 |
---|---|---|
committer | Michael Bestas <mikeioannina@cyanogenmod.org> | 2016-01-24 03:25:47 +0200 |
commit | b37c8b79760ab1d82fd662f7de30de9ec3c09460 (patch) | |
tree | 2a58c343f6aa9b8cc31f7bad70c51af66bf2b1c9 /res/values | |
parent | aeda32ab01c78437845a1bc41ee9e6941594d49d (diff) | |
download | android_packages_providers_DownloadProvider-b37c8b79760ab1d82fd662f7de30de9ec3c09460.tar.gz android_packages_providers_DownloadProvider-b37c8b79760ab1d82fd662f7de30de9ec3c09460.tar.bz2 android_packages_providers_DownloadProvider-b37c8b79760ab1d82fd662f7de30de9ec3c09460.zip |
DownloadProvider: fix the crash when rotate screen.
TrampolineActivity will be recreated when rotate screen,
then the fragment is currently associated with any Activity.
So getActivity() will return a null and caused NullPointerException.
Add the null check before call finish().
CRs-Fixed: 640914
Change-Id: I76f368a597552e824d533b6a66ea23fad4c0cb41
Diffstat (limited to 'res/values')
0 files changed, 0 insertions, 0 deletions