diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-04-09 18:09:27 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-04-09 18:10:44 +0100 |
commit | 6ddde649c594c254ffbb101ef8b8ee8b005992a8 (patch) | |
tree | edc8d666cf186c04e80f4bef2cae4303b66e80a2 /android/src | |
parent | 217e1c0bbf2d3afadcef018fc81be455c3789a9b (diff) | |
download | mupdf-6ddde649c594c254ffbb101ef8b8ee8b005992a8.tar.xz |
Android: Ensure mTopBarMode is initialised
Otherwise loading calc.pdf and clicking buttons causes a null
pointer exception.
Diffstat (limited to 'android/src')
-rw-r--r-- | android/src/com/artifex/mupdfdemo/MuPDFActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/src/com/artifex/mupdfdemo/MuPDFActivity.java b/android/src/com/artifex/mupdfdemo/MuPDFActivity.java index 7cca742b..2c10b248 100644 --- a/android/src/com/artifex/mupdfdemo/MuPDFActivity.java +++ b/android/src/com/artifex/mupdfdemo/MuPDFActivity.java @@ -65,7 +65,7 @@ public class MuPDFActivity extends Activity private ImageButton mAnnotButton; private ViewAnimator mTopBarSwitcher; private ImageButton mLinkButton; - private TopBarMode mTopBarMode; + private TopBarMode mTopBarMode = TopBarMode.Main; private AcceptMode mAcceptMode; private ImageButton mSearchBack; private ImageButton mSearchFwd; |