Merge "Send userdata from ES response to purchase webapp" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
071795c050
@@ -24,6 +24,7 @@ import android.content.Intent;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.telephony.SubscriptionManager;
|
import android.telephony.SubscriptionManager;
|
||||||
import android.telephony.TelephonyManager;
|
import android.telephony.TelephonyManager;
|
||||||
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.KeyEvent;
|
import android.view.KeyEvent;
|
||||||
import android.webkit.WebView;
|
import android.webkit.WebView;
|
||||||
@@ -183,7 +184,14 @@ public class SlicePurchaseActivity extends Activity {
|
|||||||
setContentView(mWebView);
|
setContentView(mWebView);
|
||||||
|
|
||||||
// Load the URL
|
// Load the URL
|
||||||
mWebView.loadUrl(mUrl.toString());
|
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) {
|
private static void logd(@NonNull String s) {
|
||||||
|
|||||||
Reference in New Issue
Block a user