From 927704b8a38eae8683142d71d7c6fdc0250cd203 Mon Sep 17 00:00:00 2001 From: Paul Rouget Date: Sat, 11 Aug 2018 14:25:57 +0800 Subject: fix mGLLooperHandler null ref --- .../src/main/java/com/mozilla/servoview/ServoSurface.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'support/android/apk/servoview') diff --git a/support/android/apk/servoview/src/main/java/com/mozilla/servoview/ServoSurface.java b/support/android/apk/servoview/src/main/java/com/mozilla/servoview/ServoSurface.java index 82d5a55238d..7e5af252d38 100644 --- a/support/android/apk/servoview/src/main/java/com/mozilla/servoview/ServoSurface.java +++ b/support/android/apk/servoview/src/main/java/com/mozilla/servoview/ServoSurface.java @@ -1,3 +1,8 @@ +/* -*- Mode: Java; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil; -*- + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package com.mozilla.servoview; import android.annotation.SuppressLint; @@ -194,13 +199,14 @@ public class ServoSurface { final boolean showLogs = true; String uri = mInitialUri == null ? null : mInitialUri.toString(); - mServo = new Servo(this, surface, mClient, mActivity, mServoArgs, uri, mWidth, mHeight, showLogs); mGLLooperHandler = new Handler() { public void handleMessage(Message msg) { } }; + mServo = new Servo(this, surface, mClient, mActivity, mServoArgs, uri, mWidth, mHeight, showLogs); + Looper.loop(); } } -- cgit v1.2.3