1
0
mirror of https://github.com/foobnix/LibreraReader.git synced 2025-10-06 00:02:43 +02:00

add new format

This commit is contained in:
Ivan Ivanenko
2025-07-10 14:27:05 +03:00
parent b3dc3d1a10
commit dcbc6a31c5
5 changed files with 17 additions and 6 deletions

View File

@@ -43,8 +43,8 @@ cd ../
rm /home/dev/Dropbox/FREE_PDF_APK/testing/*-x86*
rm /home/dev/Dropbox/FREE_PDF_APK/testing/*-arm.apk
rm /Users/dev/Library/CloudStorage/Dropbox/FREE_PDF_APK/testing/*-x86*
rm /Users/dev/Library/CloudStorage/Dropbox/FREE_PDF_APK/testing/*-arm.apk
rm /Users/ivanivanenko/Library/CloudStorage/Dropbox/FREE_PDF_APK/testing/*-x86*
rm /Users/ivanivanenko/Library/CloudStorage/Dropbox/FREE_PDF_APK/testing/*-arm.apk
cd Builder
./remove_all.sh

View File

@@ -40,7 +40,7 @@ cd ../
./gradlew -stop
rm /home/dev/Dropbox/FREE_PDF_APK/testing/*.apk
rm /Users/dev/Library/CloudStorage/Dropbox/FREE_PDF_APK/testing/*.apk
rm /Users/ivanivanenko/Library/CloudStorage/Dropbox/FREE_PDF_APK/testing/*.apk
cd Builder
./remove_all.sh

View File

@@ -1,5 +1,5 @@
#Thu Jul 10 11:22:42 EEST 2025
appCodeNumber=6294
#Thu Jul 10 11:30:34 EEST 2025
appCodeNumber=6298
appDB=8
appVersionNumberBase=9.0
appVersionNumberIndex=4
appVersionNumberIndex=5

View File

@@ -172,6 +172,7 @@ public class AppState {
public final static int CHAPTER_FORMAT_1 = 0;
public final static int CHAPTER_FORMAT_2 = 1;
public final static int CHAPTER_FORMAT_3 = 2;
public final static int CHAPTER_FORMAT_4 = 4;
public final static int AUTO_BRIGTNESS = -1000;
public final static int READING_MODE_SCROLL = 1;
public final static int READING_MODE_BOOK = 2;

View File

@@ -20,12 +20,15 @@ public class OutlineHelper {
public final static List<Integer> CHAPTER_FORMATS = Arrays.asList(//
AppState.CHAPTER_FORMAT_1, //
AppState.CHAPTER_FORMAT_4, //
AppState.CHAPTER_FORMAT_2, //
AppState.CHAPTER_FORMAT_3 //
//
);//
public final static List<String> CHAPTER_STRINGS = Arrays.asList(//
"50% 50 / 100 (20)", //
"50% 50 / 100", //
"50 / 100", //
"Chapter II " + TxtUtils.LONG_DASH1 + " 3 / 20" //
);//
@@ -83,6 +86,13 @@ public class OutlineHelper {
text += SP + "(" + leftPages + ")" + (!compact && leftPages < 10 ? " " : "");
info.chText = text;
}else if (AppState.get().chapterFormat == AppState.CHAPTER_FORMAT_4) {
String text = TxtUtils.getProgressPercent(dc.getCurentPageFirst1(), max) + SP + TxtUtils.deltaPage(dc.getCurentPageFirst1()) + DV + textMax;
// int leftPages = getLeftPages(dc);
text += SP;
info.chText = text;
} else if (AppState.get().chapterFormat == AppState.CHAPTER_FORMAT_2) {
info.chText = textPage + DV + textMax;
} else if (AppState.get().chapterFormat == AppState.CHAPTER_FORMAT_3) {