Fix app crash on emulator
This commit is contained in:
parent
a00d344750
commit
3c078290bc
1 changed files with 9 additions and 5 deletions
|
@ -83,12 +83,16 @@ public class DownloadImagesService extends IntentService {
|
|||
|
||||
private void initService()
|
||||
{
|
||||
pathToImageCache = FileUtils.getPathImageCache(this);
|
||||
try {
|
||||
pathToImageCache = FileUtils.getPathImageCache(this);
|
||||
|
||||
maxCount = 0;
|
||||
if(random == null)
|
||||
random = new Random();
|
||||
NOTIFICATION_ID = random.nextInt();
|
||||
maxCount = 0;
|
||||
if (random == null)
|
||||
random = new Random();
|
||||
NOTIFICATION_ID = random.nextInt();
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue