Skip to content

Commit

Permalink
chnage auther
Browse files Browse the repository at this point in the history
  • Loading branch information
Aashir1111 committed Mar 10, 2021
1 parent 14cbf42 commit 92d9007
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion folioreader/src/main/java/com/folioreader/FolioReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> selectImageTab = new MutableLiveData();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 92d9007

Please sign in to comment.