diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-02-12 17:54:50 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-03-26 12:28:52 +0000 |
commit | 8af59306cb95d85b06b20f54658b68298b7826b4 (patch) | |
tree | 2eecd53dbf7533236578ed66a51545d358077430 /android | |
parent | 85673f477f55443f8365bed03e314c9abc859fe2 (diff) | |
download | mupdf-8af59306cb95d85b06b20f54658b68298b7826b4.tar.xz |
Android: Popup notifications for entering/exiting reflow mode.
Diffstat (limited to 'android')
-rw-r--r-- | android/src/com/artifex/mupdfdemo/MuPDFActivity.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/android/src/com/artifex/mupdfdemo/MuPDFActivity.java b/android/src/com/artifex/mupdfdemo/MuPDFActivity.java index 90e55887..582848a7 100644 --- a/android/src/com/artifex/mupdfdemo/MuPDFActivity.java +++ b/android/src/com/artifex/mupdfdemo/MuPDFActivity.java @@ -372,6 +372,7 @@ public class MuPDFActivity extends Activity alert.show(); } + public void createUI(Bundle savedInstanceState) { if (core == null) return; @@ -755,9 +756,11 @@ public class MuPDFActivity extends Activity if (mReflow) { mDocView.setAdapter(new MuPDFReflowAdapter(this, core)); mReflowButton.setColorFilter(Color.argb(0xFF, 172, 114, 37)); + showInfo("Entering reflow mode"); } else { mDocView.setAdapter(new MuPDFPageAdapter(this, core)); mReflowButton.setColorFilter(Color.argb(0xFF, 255, 255, 255)); + showInfo("Exited reflow mode"); } mDocView.refresh(mReflow); } |