Skip to content

Commit

Permalink
add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
foobnix committed Dec 28, 2023
1 parent 094a278 commit e716a48
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/src/main/java/com/foobnix/pdf/info/view/Dialogs.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
import com.foobnix.ext.Fb2Extractor;
import com.foobnix.hypen.HypenUtils;
import com.foobnix.model.AppProfile;
import com.foobnix.model.AppSP;
import com.foobnix.model.AppState;
import com.foobnix.model.TagData;
import com.foobnix.pdf.info.ExtUtils;
Expand Down Expand Up @@ -738,8 +739,11 @@ public void onClick(View v) {
@Override
public void onDismiss(DialogInterface dialogInterface) {
long sec = System.currentTimeMillis() - time;
LOG.d("Book loading time:", (float) sec / 1000, "sec","cache:"+ HypenUtils.cache.size());

String loadingTime = ((float) sec / 1000) + " sec" + " cache:" + HypenUtils.cache.size();
LOG.d("Book loading time:", loadingTime, ExtUtils.getFileName(AppSP.get().lastBookPath));
if (AppState.get().isShowTestBooks) {
Toast.makeText(c, loadingTime, Toast.LENGTH_LONG).show();
}
}
});

Expand All @@ -764,7 +768,7 @@ public void onClick(DialogInterface dialog, int which) {
onresult.onResultRecive(input.getText().toString());
}
});
if(!editOnly) {
if (!editOnly) {
builder.setNeutralButton(R.string.add, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/foobnix/sys/TempHolder.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class TempHolder {
public static volatile int listHash = 0;

public static volatile int listHashTemp;
public static String loadingTime;

public static boolean isListHashChange() {
if (listHash == listHashTemp) {
Expand Down

0 comments on commit e716a48

Please sign in to comment.