diff --git a/app/src/main/assets/viewer.html b/app/src/main/assets/viewer.html
index 21f8116..a3f4103 100644
--- a/app/src/main/assets/viewer.html
+++ b/app/src/main/assets/viewer.html
@@ -2,7 +2,7 @@
-
+
PDF
diff --git a/app/src/main/java/co/copperhead/pdfviewer/PdfViewer.java b/app/src/main/java/co/copperhead/pdfviewer/PdfViewer.java
index 9bd63c2..f9eff05 100644
--- a/app/src/main/java/co/copperhead/pdfviewer/PdfViewer.java
+++ b/app/src/main/java/co/copperhead/pdfviewer/PdfViewer.java
@@ -23,6 +23,8 @@
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
+import android.view.MotionEvent;
+import android.view.ScaleGestureDetector;
import android.view.View;
import android.view.WindowManager;
import android.view.inputmethod.InputMethodManager;
@@ -96,6 +98,10 @@ protected void onCreate(Bundle savedInstanceState) {
settings.setAllowFileAccess(false);
settings.setAllowUniversalAccessFromFileURLs(true);
+ settings.setSupportZoom(true);
+ settings.setBuiltInZoomControls(true);
+ settings.setDisplayZoomControls(false);
+
mChannel = new Channel();
mWebView.addJavascriptInterface(mChannel, "channel");
diff --git a/build.gradle b/build.gradle
index a47fa4b..7e01a0a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -3,6 +3,7 @@
buildscript {
repositories {
jcenter()
+ google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
@@ -15,6 +16,7 @@ buildscript {
allprojects {
repositories {
jcenter()
+ google()
}
}