Lifecycle aware unexpected error handling

This commit is contained in:
M66B
2018-12-01 13:04:41 +01:00
parent 1d2ee534a7
commit 2665c33f68
16 changed files with 90 additions and 89 deletions

View File

@@ -138,7 +138,7 @@ abstract class ActivityBilling extends ActivityBase implements PurchasesUpdatedL
if (responseCode != BillingClient.BillingResponse.OK)
Snackbar.make(getView(), text, Snackbar.LENGTH_LONG).show();
} else
Helper.view(this, getIntentPro());
Helper.view(this, this, getIntentPro());
}
private void onActivatePro(Intent intent) {
@@ -160,7 +160,7 @@ abstract class ActivityBilling extends ActivityBase implements PurchasesUpdatedL
}
} catch (NoSuchAlgorithmException ex) {
Log.e(Helper.TAG, Log.getStackTraceString(ex));
Helper.unexpectedError(this, ex);
Helper.unexpectedError(this, this, ex);
}
}