mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-29 05:16:51 +01:00
Tweak for potential null pointer exception seen after play store release
This commit is contained in:
parent
14db0d7df6
commit
2e4fa6d699
@ -143,6 +143,7 @@ public class AppsManagementActivity extends AbstractGBActivity {
|
|||||||
if (webView!=null) webView.post(new Runnable() {
|
if (webView!=null) webView.post(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (webView==null) return; // webView may have gone by the time we get called!
|
||||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) {
|
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) {
|
||||||
webView.evaluateJavascript(js, null);
|
webView.evaluateJavascript(js, null);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user