|
@@ -9,6 +9,13 @@ import com.example.tfat.myapplication.R
|
|
import java.io.File
|
|
import java.io.File
|
|
|
|
|
|
object Utils {
|
|
object Utils {
|
|
|
|
+
|
|
|
|
+ fun generateSceneName(index: Int): String {
|
|
|
|
+ val book = ('A'.toInt() + ((index + 1) / 22)).toChar()
|
|
|
|
+ val num = (index + 1) % 22
|
|
|
|
+ return "$book$num"
|
|
|
|
+ }
|
|
|
|
+
|
|
fun showExportPdfCompleteThenViewDialog(context: Context, authority: String, file: File) {
|
|
fun showExportPdfCompleteThenViewDialog(context: Context, authority: String, file: File) {
|
|
AlertDialog.Builder(context)
|
|
AlertDialog.Builder(context)
|
|
.setMessage(R.string.export_pdf_complete_dialog_msg)
|
|
.setMessage(R.string.export_pdf_complete_dialog_msg)
|