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

Commit ed5559ac authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Send userdata from ES response to purchase webapp" into udc-dev am: 071795c0

parents 251fe7b3 071795c0
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import android.content.Intent;
import android.os.Bundle;
import android.telephony.SubscriptionManager;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.util.Log;
import android.view.KeyEvent;
import android.webkit.WebView;
@@ -183,7 +184,14 @@ public class SlicePurchaseActivity extends Activity {
        setContentView(mWebView);

        // Load the URL
        String userData = mIntent.getStringExtra(SlicePurchaseController.EXTRA_USER_DATA);
        if (TextUtils.isEmpty(userData)) {
            logd("Starting WebView with url: " + mUrl.toString());
            mWebView.loadUrl(mUrl.toString());
        } else {
            logd("Starting WebView with url: " + mUrl.toString() + ", userData=" + userData);
            mWebView.postUrl(mUrl.toString(), userData.getBytes());
        }
    }

    private static void logd(@NonNull String s) {