Updated Branches:
  refs/heads/master 5110dbd0d -> ed332b1e9

[CB-1605] Warning cleanup! Removed deprecated use.

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/commit/ed332b1e
Tree: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/ed332b1e
Diff: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/ed332b1e

Branch: refs/heads/master
Commit: ed332b1e92e14806ee598b7286f180bac8969c7d
Parents: 5110dbd
Author: Max Woghiren <[email protected]>
Authored: Thu Jul 11 17:44:19 2013 -0400
Committer: Max Woghiren <[email protected]>
Committed: Thu Jul 11 17:44:19 2013 -0400

----------------------------------------------------------------------
 src/android/InAppBrowser.java | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/ed332b1e/src/android/InAppBrowser.java
----------------------------------------------------------------------
diff --git a/src/android/InAppBrowser.java b/src/android/InAppBrowser.java
index 2b3b3b7..581a4a0 100644
--- a/src/android/InAppBrowser.java
+++ b/src/android/InAppBrowser.java
@@ -38,7 +38,6 @@ import android.content.Context;
 import android.content.DialogInterface;
 import android.content.Intent;
 import android.graphics.Bitmap;
-import android.graphics.Color;
 import android.net.Uri;
 import android.os.Bundle;
 import android.text.InputType;
@@ -518,13 +517,8 @@ public class InAppBrowser extends CordovaPlugin {
                 settings.setJavaScriptEnabled(true);
                 settings.setJavaScriptCanOpenWindowsAutomatically(true);
                 settings.setBuiltInZoomControls(true);
-                /** 
-                 * We need to be careful of this line as a future Android 
release may deprecate it out of existence.
-                 * Can't replace it with the API 8 level call right now as our 
minimum SDK is 7 until May 2013
-                 */
-                // @TODO: replace with 
settings.setPluginState(android.webkit.WebSettings.PluginState.ON)
-                settings.setPluginsEnabled(true);
-                
+                
settings.setPluginState(android.webkit.WebSettings.PluginState.ON);
+
                 //Toggle whether this is enabled or not!
                 Bundle appSettings = 
cordova.getActivity().getIntent().getExtras();
                 boolean enableDatabase = appSettings == null ? true : 
appSettings.getBoolean("InAppBrowserStorageEnabled", true);

Reply via email to