mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-16 10:22:38 +01:00
29 lines
749 B
Java
29 lines
749 B
Java
package net.foucry.pilldroid;
|
|
|
|
import android.graphics.Color;
|
|
import android.os.Bundle;
|
|
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
|
|
import android.webkit.WebView;
|
|
|
|
/**
|
|
* Created by jacques on 12/06/16.
|
|
*/
|
|
public class About extends AppCompatActivity{
|
|
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
setContentView(R.layout.about);
|
|
|
|
WebView aboutView = findViewById(R.id.aboutHtml);
|
|
|
|
aboutView.loadUrl("file:///android_asset/about.html");
|
|
aboutView.clearCache(true);
|
|
aboutView.clearHistory();
|
|
aboutView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
|
|
aboutView.setBackgroundColor(Color.WHITE);
|
|
|
|
}
|
|
}
|