fix mGLLooperHandler null ref

This commit is contained in:
Paul Rouget 2018-08-11 14:25:57 +08:00
parent f1a2862e65
commit 927704b8a3

View file

@ -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();
}
}