|
@@ -0,0 +1,18 @@
|
|
|
+package com.kdanmobile.pdfreaderviewapp
|
|
|
+
|
|
|
+import android.content.Intent
|
|
|
+import com.kdanmobile.reader.CopyFileActivity
|
|
|
+import java.io.File
|
|
|
+
|
|
|
+class MyCopyFileActivity: CopyFileActivity() {
|
|
|
+ override fun provideFileName(): String {
|
|
|
+ return File(intent.getStringExtra(MyReaderActivity.KEY_FILE_ABSOLUTE)).name
|
|
|
+ }
|
|
|
+
|
|
|
+ override fun provideReaderActivityIntent(): Intent {
|
|
|
+ val readerIntent = Intent(this, MyReaderActivity::class.java)
|
|
|
+ readerIntent.putExtra(MyReaderActivity.KEY_FILE_ABSOLUTE, intent.getStringExtra(MyReaderActivity.KEY_FILE_ABSOLUTE))
|
|
|
+ readerIntent.putExtra("copyFile", intent.getBooleanExtra("copyFile", false))
|
|
|
+ return readerIntent
|
|
|
+ }
|
|
|
+}
|