Avoid crash when service is disconnected

This commit is contained in:
maskara 2018-01-06 02:36:51 +05:30
parent feb435304f
commit b639b649d7
2 changed files with 2 additions and 2 deletions

View file

@ -94,7 +94,7 @@ public class ContributionsActivity
@Override
public void onServiceDisconnected(ComponentName componentName) {
// this should never happen
throw new RuntimeException("UploadService died but the rest of the process did not!");
Timber.e(new RuntimeException("UploadService died but the rest of the process did not!"));
}
};

View file

@ -56,7 +56,7 @@ public class UploadController {
@Override
public void onServiceDisconnected(ComponentName componentName) {
// this should never happen
throw new RuntimeException("UploadService died but the rest of the process did not!");
Timber.e(new RuntimeException("UploadService died but the rest of the process did not!"));
}
};