INNER CODE UNIT · Java
onActivityResult
google/bundletool · src/main/dex_src/com/google/android/archive/ReactivateActivity.java:121
public void onActivityResult(int ignored1, int resultCode, Intent ignored2) {
if (resultCode == Activity.RESULT_CANCELED) {
Log.i(
TAG,
String.format(
"Couldn't reach the app store %s to unarchive, retry count: %s",
appStorePackageName, retryCount));
if (unhibernateFuture != null && retryCount++ < 3) {
unhibernateFuture =
scheduledExecutorService.schedule(this::startUnhibernateActivityForResult, 5, SECONDS);
} else {
processingError = true;
buildErrorDialog().show();
unhibernateFuture = null;
retryCount = 0;
}
} else {
// This should not be reachable due to the noHistory activity flag.