From 8af59306cb95d85b06b20f54658b68298b7826b4 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 12 Feb 2013 17:54:50 +0000 Subject: Android: Popup notifications for entering/exiting reflow mode. --- android/src/com/artifex/mupdfdemo/MuPDFActivity.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'android') 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); } -- cgit v1.2.3