Loading packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/SlicePurchaseActivity.java +7 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ import android.telephony.TelephonyManager; import android.text.TextUtils; import android.util.Log; import android.view.KeyEvent; import android.webkit.CookieManager; import android.webkit.WebView; import com.android.phone.slice.SlicePurchaseController; Loading Loading @@ -168,6 +169,12 @@ public class SlicePurchaseActivity extends Activity { // Create WebView mWebView = new WebView(this); // Clear any cookies and state that might be saved from previous sessions CookieManager.getInstance().removeAllCookies(null); CookieManager.getInstance().flush(); mWebView.clearCache(true); mWebView.clearHistory(); // Enable JavaScript for the carrier purchase website to send results back to // the slice purchase application. mWebView.getSettings().setJavaScriptEnabled(true); Loading Loading
packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/SlicePurchaseActivity.java +7 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ import android.telephony.TelephonyManager; import android.text.TextUtils; import android.util.Log; import android.view.KeyEvent; import android.webkit.CookieManager; import android.webkit.WebView; import com.android.phone.slice.SlicePurchaseController; Loading Loading @@ -168,6 +169,12 @@ public class SlicePurchaseActivity extends Activity { // Create WebView mWebView = new WebView(this); // Clear any cookies and state that might be saved from previous sessions CookieManager.getInstance().removeAllCookies(null); CookieManager.getInstance().flush(); mWebView.clearCache(true); mWebView.clearHistory(); // Enable JavaScript for the carrier purchase website to send results back to // the slice purchase application. mWebView.getSettings().setJavaScriptEnabled(true); Loading