License.html wasn't loaded correctly
This commit is contained in:
parent
cca91b12b9
commit
f730426644
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue