Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d903af09 authored by Sarah Chin's avatar Sarah Chin
Browse files

Add duration parameter to notifyPurchaseSuccessful

Test: manual
Bug: 313447909
Change-Id: Ie0698c1455a65ac92a92e7087df3a96436fb8955
parent d62103c2
Loading
Loading
Loading
Loading
+20 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ public class DataBoostWebServiceFlow {
     *
     * This can be called using the JavaScript below:
     * <script type="text/javascript">
     *     function getRequestedCapability(duration) {
     *     function getRequestedCapability() {
     *         DataBoostWebServiceFlow.getRequestedCapability();
     *     }
     * </script>
@@ -57,6 +57,25 @@ public class DataBoostWebServiceFlow {
     *
     * This can be called using the JavaScript below:
     * <script type="text/javascript">
     *     function notifyPurchaseSuccessful(duration_ms_long = 0) {
     *         DataBoostWebServiceFlow.notifyPurchaseSuccessful(duration_ms_long);
     *     }
     * </script>
     *
     * @param duration The duration for which the premium capability is purchased in milliseconds.
     *                 NOTE: The duration parameter is not used.
     */
    @JavascriptInterface
    public void notifyPurchaseSuccessful(long duration) {
        mActivity.onPurchaseSuccessful();
    }

    /**
     * Interface method allowing the carrier website to notify the slice purchase application of
     * a successful premium capability purchase.
     *
     * This can be called using the JavaScript below:
     * <script type="text/javascript">
     *     function notifyPurchaseSuccessful() {
     *         DataBoostWebServiceFlow.notifyPurchaseSuccessful();
     *     }