Commit 54278b77 authored by Ludovic Fauvet's avatar Ludovic Fauvet

MainActivity: don't crash during onDestroy

If for any reason we don't reach the end of the onCreate() the
thumbnailer may not be instantiated.
parent bc5b49e1
......@@ -342,8 +342,8 @@ public class MainActivity extends SherlockFragmentActivity {
try {
unregisterReceiver(messageReceiver);
} catch (IllegalArgumentException e) {}
if (mThumbnailerManager != null)
mThumbnailerManager.clearJobs();
super.onDestroy();
}
@Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment