aboutsummaryrefslogtreecommitdiffstats
path: root/support/android/apk/servoview
diff options
context:
space:
mode:
authorPaul Rouget <me@paulrouget.com>2018-08-11 14:25:57 +0800
committerPaul Rouget <me@paulrouget.com>2018-08-11 16:55:20 +0800
commit927704b8a38eae8683142d71d7c6fdc0250cd203 (patch)
tree086916e3a8157a4a62507d981b5e4959b2e25c10 /support/android/apk/servoview
parentf1a2862e654482bd0f13a4cf3670b454353b8633 (diff)
downloadservo-927704b8a38eae8683142d71d7c6fdc0250cd203.tar.gz
servo-927704b8a38eae8683142d71d7c6fdc0250cd203.zip
fix mGLLooperHandler null ref
Diffstat (limited to 'support/android/apk/servoview')
-rw-r--r--support/android/apk/servoview/src/main/java/com/mozilla/servoview/ServoSurface.java8
1 files changed, 7 insertions, 1 deletions
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();
}
}