Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Oct 3, 2018
1 parent 8bee8ba commit 30d440b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.mozilla.vrbrowser;

import android.content.Context;
import android.support.annotation.NonNull;
import android.util.Log;

Expand All @@ -13,10 +12,10 @@ public class GlobalExceptionHandler {
private static GlobalExceptionHandler mInstance;

public static synchronized @NonNull
GlobalExceptionHandler register(@NonNull Context aContext) {
GlobalExceptionHandler register() {
if (mInstance == null) {
mInstance = new GlobalExceptionHandler();
mInstance.mCrashHandler = new CrashHandler(aContext, CrashReporterService.class);
mInstance.mCrashHandler = new CrashHandler(CrashReporterService.class);
Log.d(LOGTAG, "======> GlobalExceptionHandler registered");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void run() {
@Override
protected void onCreate(Bundle savedInstanceState) {
// Set a global exception handler as soon as possible
GlobalExceptionHandler.register(this);
GlobalExceptionHandler.register();

if (BuildConfig.FLAVOR_platform == "oculusvr") {
workaroundGeckoSigAction();
Expand Down

0 comments on commit 30d440b

Please sign in to comment.