aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/utils/ExceptionHelper.java
blob: def184d0d58befc0a8f1ca28ab72df6ea15a31bb (plain)
1
2
3
4
5
6
7
8
9
10
11
package eu.siacs.conversations.utils;

import android.content.Context;

public class ExceptionHelper {
	public static void init(Context context) {
		if(!(Thread.getDefaultUncaughtExceptionHandler() instanceof ExceptionHandler)) {
		    Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler(context));
		}
	}
}