Skip to content

Commit

Permalink
append parser type info only after effectively parsing the archive ...
Browse files Browse the repository at this point in the history
lenientparser might switch on us
  • Loading branch information
edeso committed Apr 12, 2023
1 parent 95f8786 commit c004a83
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public void onSwipeOutAtEnd() {
title += mFile.getName();
else if (mUri != null)
title += mUri.getLastPathSegment();
((TextView) getActivity().findViewById(R.id.action_bar_title)).setText((title.isEmpty() ? "" : title + " ") + "[" + mParser.getType() + "]");
((TextView) getActivity().findViewById(R.id.action_bar_title)).setText(title);

// move parsing into bg thread to return view early
new Thread(new Runnable() {
Expand All @@ -381,6 +381,9 @@ public void run() {

view.findViewById(R.id.progressPlaceholder).setVisibility(View.GONE);
mViewPager.setVisibility(View.VISIBLE);

TextView titleTextView = getActivity().findViewById(R.id.action_bar_title);
titleTextView.append((titleTextView.getText().toString().isEmpty() ? "" : " ")+"[" + mParser.getType() + "]");
}
});
}
Expand Down

0 comments on commit c004a83

Please sign in to comment.