Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
Bug Fixes
Browse files Browse the repository at this point in the history
Fixed major printing bug
  • Loading branch information
javacafe01 committed Jun 4, 2019
1 parent c57fe69 commit 1013353
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
Binary file modified .idea/caches/gradle_models.ser
Binary file not shown.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ android {
applicationId "com.gsnathan.pdfviewer"
minSdkVersion 21
targetSdkVersion 28
versionCode 20
versionName "2.9"
versionCode 21
versionName "3.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true

Expand Down
Binary file added app/src/main/assets/pdf_sample.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions app/src/main/java/com/gsnathan/pdfviewer/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public class MainActivity extends ProgressActivity implements OnPageChangeListen
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
pdfFileName = "";
prefManager = PreferenceManager.getDefaultSharedPreferences(this);
onFirstInstall();
onFirstUpdate();
Expand Down Expand Up @@ -233,10 +234,9 @@ public boolean onMenuItemSelected(MenuItem menuItem) {
break;
case R.id.printFile:
if (uri != null)
print(pdfView.getDocumentMeta().getTitle(),
print(pdfFileName,
new PdfDocumentAdapter(getApplicationContext()),
new PrintAttributes.Builder().build());

break;
default:
break;
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/gsnathan/pdfviewer/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public class Utils {

static void showLog(AppCompatActivity context) {
WhatsNew log = WhatsNew.newInstance(
new WhatsNewItem("Translation", "Added Russian localization", R.drawable.thumbs_icon),
new WhatsNewItem("Printing", "Implemented printing options", R.drawable.star_icon));
new WhatsNewItem("Bug Fixes", "Fixed Printing Bug", R.drawable.thumbs_icon),
new WhatsNewItem("Printing", "Fixed Nav Bar Bug", R.drawable.star_icon));
log.setTitleColor(ContextCompat.getColor(context, R.color.colorAccent));
log.setTitleText(context.getResources().getString(R.string.appChangelog));
log.setButtonText(context.getResources().getString(R.string.buttonLog));
Expand Down

0 comments on commit 1013353

Please sign in to comment.