/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 *
*/
package org.purimize.cordova.viewportfix;

import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaArgs;
import org.apache.cordova.CordovaInterface;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CordovaWebView;

public class EnableViewportScaleFix extends CordovaPlugin {
    /* Set the referenced webview content  */
    @Override
    public void initialize(final CordovaInterface cordova, CordovaWebView webView) {
        Log.v(TAG, "StatusBar: initialization");
        super.initialize(cordova, webView);
        CordovaPreferences preferences = this.preferences();


        webview.getSettings().setUseWideViewPort( preferences.getBoolean("EnableViewportScale", false) );
        webview.getSettings().setLoadWithOverviewMode( preferences.getBoolean("LoadWithOverviewMode", false) );
    }

    /* Do nothing... */
    @Override
    public boolean execute(String action, CordovaArgs args, final CallbackContext callbackContext) { return false; }
}
@@ -1273,154 +1273,43 @@
     
-Log.v(TAG, %22StatusBar: initialization%22);%0A        super.initialize(cordova, webView);%0A        CordovaPreferences preferences = this.preferences();%0A
+super.initialize(cordova, webView);
 %0A%0A  
@@ -1309,33 +1309,33 @@
 w);%0A%0A        web
-v
+V
 iew.getSettings(
@@ -1356,16 +1356,21 @@
 ewPort( 
+this.
 preferen
@@ -1428,17 +1428,17 @@
      web
-v
+V
 iew.getS
@@ -1472,16 +1472,21 @@
 ewMode( 
+this.
 preferen

Correct error variable names and unused variables