diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-10-02 17:38:16 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-10-02 17:38:16 -0700 |
commit | 8bf2bd464de8873012a4d0cafb5c6e5886df5cf1 (patch) | |
tree | 7777615c50605e81577c87c27bbed530a241fd89 /src/github | |
parent | 04f146f4eaedc38d32c8f54b16c68c237abb7b31 (diff) | |
download | dsub-8bf2bd464de8873012a4d0cafb5c6e5886df5cf1.tar.gz dsub-8bf2bd464de8873012a4d0cafb5c6e5886df5cf1.tar.bz2 dsub-8bf2bd464de8873012a4d0cafb5c6e5886df5cf1.zip |
Fix race condition for handler
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/view/UpdateView.java | 2 |
1 files changed, 2 insertions, 0 deletions
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() {
|