Prevent crash

This commit is contained in:
M66B
2018-11-07 19:16:31 +00:00
parent 53abb06efa
commit 4ad1bde2e3
2 changed files with 12 additions and 7 deletions

View File

@@ -525,6 +525,8 @@ public class ServiceSynchronize extends LifecycleService {
cursor.getLong(0) + "/photo");
mbuilder.setLargeIcon(Icon.createWithContentUri(photo));
}
} catch (SecurityException ex) {
Log.e(Helper.TAG, ex + "\n" + Log.getStackTraceString(ex));
} finally {
if (cursor != null)
cursor.close();