Sfoglia il codice sorgente

Remove ok button in stamp context menu

Wayne 6 anni fa
parent
commit
dcedc800a0

+ 0 - 5
src/main/java/com/kdanmobile/reader/ReaderViewModel.kt

@@ -29,7 +29,6 @@ import com.kdanmobile.reader.screen.data.SignatureAttribute
 import com.kdanmobile.reader.screen.data.StampAttribute
 import com.kdanmobile.reader.screen.data.TextBoxAttribute
 import com.kdanmobile.reader.screen.handler.*
-import com.kdanmobile.reader.thumb.PdfThumbViewModel
 import java.io.File
 import java.util.*
 import kotlin.collections.ArrayList
@@ -418,10 +417,6 @@ class ReaderViewModel(private val pdfSdkLicense: String, private val pdfSdkRsaMs
             (kmpdfFactory?.getController(KMPDFFactory.ControllerType.STAMP) as KMPDFStampController).deleteStampAnnotView()
             return@MenuItemCallback true
         })
-        item.menuCallbacks.add(MenuItemCallback { view, annotType ->
-            saveModifyingAnnotation()
-            return@MenuItemCallback true
-        })
         kmpdfFactory?.setAnnotationContextMenu(item)
     }
 

+ 0 - 3
src/main/res/menu/context_menu_stamp.xml

@@ -4,7 +4,4 @@
 <item
     android:title="@string/contextMenu_stamp_delete" />
 
-<item
-    android:title="@string/contextMenu_stamp_ok" />
-
 </menu>