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

Commit 93f9d877 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add duration parameter to notifyPurchaseSuccessful" into main

parents 9fb9a355 d903af09
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();
     *     }