2016-06-12 18:46:19 +02:00
|
|
|
package net.foucry.pilldroid;
|
|
|
|
|
2016-06-19 01:47:30 +02:00
|
|
|
import android.graphics.Color;
|
2016-06-12 18:46:19 +02:00
|
|
|
import android.graphics.drawable.Drawable;
|
|
|
|
import android.os.Bundle;
|
2020-05-16 19:49:14 +02:00
|
|
|
import androidx.core.content.ContextCompat;
|
|
|
|
import androidx.appcompat.app.AppCompatActivity;
|
2016-06-12 18:46:19 +02:00
|
|
|
import android.text.Html;
|
2016-06-14 23:41:05 +02:00
|
|
|
import android.webkit.WebView;
|
2016-06-12 18:46:19 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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);
|
2016-06-19 00:57:40 +02:00
|
|
|
|
|
|
|
aboutView.loadUrl("file:///android_asset/about.html");
|
|
|
|
aboutView.clearCache(true);
|
|
|
|
aboutView.clearHistory();
|
2016-06-19 01:47:30 +02:00
|
|
|
aboutView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
|
|
|
|
aboutView.setBackgroundColor(Color.WHITE);
|
2016-06-19 00:57:40 +02:00
|
|
|
|
2016-06-12 18:46:19 +02:00
|
|
|
}
|
|
|
|
}
|