From c845fe961a6846b46116a38bb0dd8a9e5bdba609 Mon Sep 17 00:00:00 2001 From: fred ross-perry Date: Thu, 14 Jul 2016 17:03:45 -0700 Subject: android example - add a button to toggle annotations --- .../src/main/java/com/artifex/mupdf/example/DocViewActivity.java | 6 ++++++ 1 file changed, 6 insertions(+) mode change 100644 => 100755 platform/android/example/app/src/main/java/com/artifex/mupdf/example/DocViewActivity.java (limited to 'platform/android/example/app/src/main/java/com') diff --git a/platform/android/example/app/src/main/java/com/artifex/mupdf/example/DocViewActivity.java b/platform/android/example/app/src/main/java/com/artifex/mupdf/example/DocViewActivity.java old mode 100644 new mode 100755 index c503a85a..f17bcb83 --- a/platform/android/example/app/src/main/java/com/artifex/mupdf/example/DocViewActivity.java +++ b/platform/android/example/app/src/main/java/com/artifex/mupdf/example/DocViewActivity.java @@ -3,6 +3,7 @@ package com.artifex.mupdf.example; import android.app.Activity; import android.net.Uri; import android.os.Bundle; +import android.view.View; import com.artifex.mupdf.android.DocView; @@ -26,4 +27,9 @@ public class DocViewActivity extends Activity // start the view mDocView.start(path); } + + public void onToggleAnnotations(View v) + { + mDocView.toggleAnnotations(); + } } -- cgit v1.2.3