Pilldroid/app/src/main/java/net/foucry/pilldroid/About.java

30 lines
749 B
Java
Raw Normal View History

package net.foucry.pilldroid;
import android.graphics.Color;
import android.os.Bundle;
2020-12-07 11:04:57 +01:00
2020-05-16 19:49:14 +02:00
import androidx.appcompat.app.AppCompatActivity;
2020-12-07 11:04:57 +01:00
2016-06-14 23:41:05 +02:00
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);
2020-10-03 23:10:43 +02:00
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);
}
}