diff --git a/folioreader/src/main/java/com/folioreader/FolioReader.java b/folioreader/src/main/java/com/folioreader/FolioReader.java index f4bb0b1e..08af7dec 100644 --- a/folioreader/src/main/java/com/folioreader/FolioReader.java +++ b/folioreader/src/main/java/com/folioreader/FolioReader.java @@ -115,7 +115,7 @@ private FolioReader(Context context) { public FolioReader openBook(String assetOrSdcardPath,String language, String author,String book) { FileUtil.language = language; - FileUtil.mBookFileAuthor = author; + FileUtil.mBookAuthor = author; FileUtil.mBookname = book; Intent intent = getIntentFromUrl(assetOrSdcardPath, 0); context.startActivity(intent); diff --git a/folioreader/src/main/java/com/folioreader/ui/folio/DialogPublic/ImageQuotesDialog.kt b/folioreader/src/main/java/com/folioreader/ui/folio/DialogPublic/ImageQuotesDialog.kt index dd08d264..856085c4 100644 --- a/folioreader/src/main/java/com/folioreader/ui/folio/DialogPublic/ImageQuotesDialog.kt +++ b/folioreader/src/main/java/com/folioreader/ui/folio/DialogPublic/ImageQuotesDialog.kt @@ -28,7 +28,7 @@ class ImageQuotesDialog : AppCompatActivity() { val titleText = intent.extras?.getString("selectedTxtKey") quoteText?.text = titleText - autherName?.text = "by ${FileUtil.mBookFileAuthor}" + autherName?.text = "by ${FileUtil.mBookAuthor}" bookname?.text = FileUtil.mBookname orangeColor?.setOnClickListener { changeColorOfLayout(it) } diff --git a/folioreader/src/main/java/com/folioreader/util/FileUtil.java b/folioreader/src/main/java/com/folioreader/util/FileUtil.java index 68b7d680..d45d1353 100644 --- a/folioreader/src/main/java/com/folioreader/util/FileUtil.java +++ b/folioreader/src/main/java/com/folioreader/util/FileUtil.java @@ -25,6 +25,7 @@ public class FileUtil { private static final String TAG = FileUtil.class.getSimpleName(); private static final String FOLIO_READER_ROOT = "folioreader"; public static String mBookFileAuthor= ""; + public static String mBookAuthor= ""; public static String mBookname= ""; public static String language= ""; public static MutableLiveData selectImageTab = new MutableLiveData(); diff --git a/folioreader/src/main/java/com/folioreader/view/FolioWebView.kt b/folioreader/src/main/java/com/folioreader/view/FolioWebView.kt index 879f3fb9..81fbb67a 100644 --- a/folioreader/src/main/java/com/folioreader/view/FolioWebView.kt +++ b/folioreader/src/main/java/com/folioreader/view/FolioWebView.kt @@ -792,7 +792,7 @@ class FolioWebView : WebView { ContextCompat.startActivity(context, intent, null) } if (items[item] == "Share text quote") { - val shae = "$selectedText\n \nAuther: ${FileUtil.mBookFileAuthor} \nBook Name : ${FileUtil.mBookname}" + val shae = "$selectedText\n \nAuther: ${FileUtil.mBookAuthor} \nBook Name : ${FileUtil.mBookname}" UiUtil.share(context, shae) } else { selectTab?.postValue("cancel")