Enable hardware acceleration for WebView

This commit is contained in:
M66B 2019-04-27 13:37:53 +02:00
parent 6afcd1dce9
commit 740c2b0318
1 changed files with 2 additions and 0 deletions

View File

@ -1458,6 +1458,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
}
});
// https://issuetracker.google.com/issues/36933699
webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
webView.setBackgroundColor(Color.TRANSPARENT);
WebSettings settings = webView.getSettings();