Skip to content

Commit

Permalink
Made the WebView debuggable, I hope.
Browse files Browse the repository at this point in the history
  • Loading branch information
zond authored Apr 21, 2020
1 parent 9432873 commit 7450cd3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/main/java/se/oort/diplicity/game/MapView.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ public class MapView extends FrameLayout {
private Map<String, Unit> units = new HashMap<>();
private Map<String, Unit> dislodged = new HashMap<>();

static {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
WebView.setWebContentsDebuggingEnabled(true);
}
}

private void inflate() {
LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
Expand Down

0 comments on commit 7450cd3

Please sign in to comment.