Sha256: 351e120b895052df24e4eac87cb795ab68fa0554c805835893e57ccfed70cca3

Contents?: true

Size: 719 Bytes

Versions: 6

Compression:

Stored size: 719 Bytes

Contents

package com.rhomobile.rhodes.webview;

import com.rhomobile.rhodes.RhodesService;

import android.content.Context;
import android.webkit.WebSettings;
import android.webkit.WebView;

public class RhoWebSettingsNew implements RhoWebSettings {

	public WebSettings setWebSettings(WebView w) {
		RhoWebSettingsOld ws = new RhoWebSettingsOld();
		WebSettings webSettings = ws.setWebSettings(w);
		
		webSettings.setAppCacheEnabled(true);
		
		
		webSettings.setDatabaseEnabled(true);
		webSettings.setJavaScriptEnabled(true); 
		
		String databasePath = RhodesService.getInstance().getContext().getDir("database", Context.MODE_PRIVATE).getPath();
		webSettings.setDatabasePath(databasePath);
		 
		return webSettings;
	}

}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rhodes-2.2.6 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsNew.java
rhodes-2.2.6.beta.1 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsNew.java
rhodes-2.2.5 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsNew.java
rhodes-2.2.5.beta.3 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsNew.java
rhodes-2.2.5.beta.2 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsNew.java
rhodes-2.2.5.beta.1 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsNew.java