diff --git a/card.io/src/main/java/io/card/payment/CardIOActivity.java b/card.io/src/main/java/io/card/payment/CardIOActivity.java index 2fe824be..0bbcb8bb 100644 --- a/card.io/src/main/java/io/card/payment/CardIOActivity.java +++ b/card.io/src/main/java/io/card/payment/CardIOActivity.java @@ -324,8 +324,6 @@ public final class CardIOActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - numActivityAllocations++; // NOTE: java native asserts are disabled by default on Android. if (numActivityAllocations != 1) { @@ -399,6 +397,7 @@ protected void onCreate(Bundle savedInstanceState) { } } + super.onCreate(savedInstanceState); } private void android23AndAboveHandleCamera() {