License.html wasn't loaded correctly

This commit is contained in:
daniel oeh 2013-02-25 22:35:12 +01:00
parent cca91b12b9
commit f730426644
1 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package de.danoeh.antennapod.activity;
import android.os.Bundle; import android.os.Bundle;
import android.webkit.WebView; import android.webkit.WebView;
import android.webkit.WebViewClient;
import com.actionbarsherlock.app.SherlockActivity; import com.actionbarsherlock.app.SherlockActivity;
@ -18,6 +19,15 @@ public class AboutActivity extends SherlockActivity {
getSupportActionBar().hide(); getSupportActionBar().hide();
setContentView(R.layout.about); setContentView(R.layout.about);
webview = (WebView) findViewById(R.id.webvAbout); webview = (WebView) findViewById(R.id.webvAbout);
webview.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return false;
}
});
webview.loadUrl("file:///android_asset/about.html"); webview.loadUrl("file:///android_asset/about.html");
} }