Performance improvements and proper link to cheatsheet

This commit is contained in:
William Brawner 2017-08-23 21:22:59 -05:00
parent c912b32d5c
commit 1ea93a2cdf
3 changed files with 4 additions and 5 deletions

View file

@ -163,6 +163,6 @@ Numbered lists work similarly, though the actual number you use is irrelevant.
# Final Notes
Don't forget that you can, of course, write regular HTML here and it will get parsed as normal. You can view this file here: [link](https://github.com/wbrawner/SimpleMarkdown/)
Don't forget that you can, of course, write regular HTML here and it will get parsed as normal. You can view this file here: [link](https://github.com/wbrawner/SimpleMarkdown/blob/master/app/src/main/assets/Cheatsheet.md)
If you need any assistance with the app or you run into a bug, please [open an issue](https://github.com/wbrawner/SimpleMarkdown/). You can also [visit me on my personal website](https://wbrawner.com), or [send me an email](billybrawner@gmail.com).

View file

@ -29,12 +29,10 @@ public class MarkdownInfoActivity extends AppCompatActivity {
if (intent == null || !intent.hasExtra("title") || !intent.hasExtra("html"))
finish();
setTitle(intent.getStringExtra("title"));
infoWebview.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
infoWebview.getSettings().setRenderPriority(WebSettings.RenderPriority.HIGH);
infoWebview.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
String style = "<style>pre {overflow:scroll;}</style>";
infoWebview.loadDataWithBaseURL(
null,
intent.getStringExtra("html"),
style + intent.getStringExtra("html"),
"text/html",
"UTF-8",
null

View file

@ -14,5 +14,6 @@ public class SplashActivity extends AppCompatActivity {
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
startActivity(new Intent(this, MainActivity.class));
finish();
}
}