We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c57339 commit 6198659Copy full SHA for 6198659
app/src/main/java/org/solovyev/android/checkout/app/CheckoutApplication.java
@@ -2,6 +2,7 @@
2
3
import org.solovyev.android.checkout.Billing;
4
5
+import android.app.Activity;
6
import android.app.Application;
7
8
import javax.annotation.Nonnull;
@@ -27,6 +28,13 @@ public String getPublicKey() {
27
28
}
29
});
30
31
+ /**
32
+ * Returns an instance of {@link CheckoutApplication} attached to the passed activity.
33
+ */
34
+ public static CheckoutApplication get(Activity activity) {
35
+ return (CheckoutApplication) activity.getApplication();
36
+ }
37
+
38
@Nonnull
39
public Billing getBilling() {
40
return mBilling;
0 commit comments