adding a basic PDF Viewer implementation

This commit is contained in:
tibbi 2022-05-15 19:48:39 +02:00
parent e7c688cbdd
commit 376b521170
3 changed files with 35 additions and 0 deletions

View File

@ -83,6 +83,18 @@
</intent-filter> </intent-filter>
</activity> </activity>
<activity
android:name=".activities.PDFViewerActivity"
android:exported="true"
android:label="@string/pdf_viewer">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/pdf" />
</intent-filter>
</activity>
<activity <activity
android:name=".activities.DecompressActivity" android:name=".activities.DecompressActivity"
android:exported="true" android:exported="true"

View File

@ -0,0 +1,16 @@
package com.simplemobiletools.filemanager.pro.activities
import android.os.Bundle
import com.simplemobiletools.commons.extensions.checkAppSideloading
import com.simplemobiletools.filemanager.pro.R
class PDFViewerActivity : SimpleActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_pdf_viewer)
if (checkAppSideloading()) {
return
}
}
}

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/pdf_viewer_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</RelativeLayout>