From 8bf2bd464de8873012a4d0cafb5c6e5886df5cf1 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 2 Oct 2013 17:38:16 -0700 Subject: Fix race condition for handler --- src/github/daneren2005/dsub/view/UpdateView.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/github') diff --git a/src/github/daneren2005/dsub/view/UpdateView.java b/src/github/daneren2005/dsub/view/UpdateView.java index 48d9cf94..20f9db9f 100644 --- a/src/github/daneren2005/dsub/view/UpdateView.java +++ b/src/github/daneren2005/dsub/view/UpdateView.java @@ -99,6 +99,8 @@ public class UpdateView extends LinearLayout { } uiHandler = new Handler(); + // Needed so handler is never null until thread creates it + backgroundHandler = uiHandler; updateRunnable = new Runnable() { @Override public void run() { -- cgit v1.2.3