package com.artifex.mupdf.example;

import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;

import com.artifex.mupdf.android.DocView;

public class DocViewActivity extends Activity
{
    private DocView mDocView;

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);

        //  set up UI
		setContentView(R.layout.activity_doc_view);
        mDocView = (DocView)findViewById(R.id.doc_view);

		//  get the file path
		Uri uri = getIntent().getData();
		final String path = Uri.decode(uri.getEncodedPath());

        //  start the view
        mDocView.start(path);
	}

}

@@ -200,20 +200,17 @@
 ivity%0A%7B%0A
-    
+%09
 private 
@@ -329,32 +329,26 @@
 nceState);%0A%0A
-        
+%09%09
 //  set up U
@@ -395,24 +395,18 @@
 _view);%0A
-        
+%09%09
 mDocView
@@ -563,24 +563,18 @@
 th());%0A%0A
-        
+%09%09
 //  star
@@ -588,16 +588,10 @@
 iew%0A
-        
+%09%09
 mDoc
@@ -611,11 +611,10 @@
 th);%0A%09%7D%0A
-%0A
 %7D%0A

Fix mixed tabs/spaces in DocViewActivity.java.