Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couple of enhancements and changes #48

Merged
merged 1 commit into from
Mar 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
### Badges
[![Build Status](https://travis-ci.org/Swati4star/Images-to-PDF.svg?branch=master)](https://travis-ci.org/Swati4star/Images-to-PDF) [![Circle CI](https://circleci.com/gh/Swati4star/Images-to-PDF.svg?style=svg)](https://circleci.com/gh/Swati4star/Images-to-PDF)

[<img src="https://f-droid.org/badge/get-it-on.png" alt="Get it on F-Droid" height="80">](https://f-droid.org/app/swati4star.createpdf)
<a href="https://play.google.com/store/apps/details?id=swati4star.createpdf"><img alt="Get it on Google Play" src="https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png" height=80px/></a> [<img src="https://f-droid.org/badge/get-it-on.png" alt="Get it on F-Droid" height="80">](https://f-droid.org/app/swati4star.createpdf)


Have JPG when you need a PDF? Convert JPG to PDF in a few seconds! :smiley:
Here is an easy to use Android app to convert images to PDF file!
Expand Down
3 changes: 3 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ android {
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "swati4star.createpdf"
vectorDrawables.useSupportLibrary = true
minSdkVersion 19
targetSdkVersion 25
versionCode 1
Expand Down Expand Up @@ -36,6 +37,8 @@ dependencies {
compile 'com.itextpdf:itextg:5.5.9'
compile 'com.balysv:material-ripple:1.0.2'
compile 'com.github.dmytrodanylyk:android-morphing-button:98a4986e56'
compile 'com.android.support:cardview-v7:24.2.1'
compile 'com.android.support:recyclerview-v7:24.2.1'
compile 'com.github.ParkSangGwon:TedPicker:v1.0.10'
compile('com.github.afollestad.material-dialogs:core:0.8.5.4@aar') {
transitive = true
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<activity android:name="com.theartofdev.edmodo.cropper.CropImageActivity"
android:theme="@style/Base.Theme.AppCompat"/>
<activity
android:name=".MainActivity"
android:name=".activity.MainActivity"
android:screenOrientation="portrait"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package swati4star.createpdf;
package swati4star.createpdf.activity;

import android.content.Intent;
import android.os.Bundle;
Expand All @@ -12,8 +12,9 @@
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;

import butterknife.BindView;
import butterknife.ButterKnife;
import swati4star.createpdf.R;
import swati4star.createpdf.fragment.HomeFragment;
import swati4star.createpdf.fragment.ViewFilesFragment;

public class MainActivity extends AppCompatActivity
implements NavigationView.OnNavigationItemSelectedListener {
Expand All @@ -33,11 +34,12 @@ protected void onCreate(Bundle savedInstanceState) {
// Set navigation drawer
ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
drawer.setDrawerListener(toggle);
//Replaced setDrawerListener with addDrawerListener because it was deprecated.
drawer.addDrawerListener(toggle);
toggle.syncState();

// Set Home fragment
Fragment fragment = new Home();
// Set HomeFragment fragment
Fragment fragment = new HomeFragment();
FragmentManager fragmentManager = getSupportFragmentManager();
fragmentManager.beginTransaction().replace(R.id.content, fragment).commit();

Expand All @@ -64,11 +66,11 @@ public boolean onNavigationItemSelected(MenuItem item) {

switch (id) {
case R.id.nav_camera:
fragment = new Home();
fragment = new HomeFragment();
fragmentManager.beginTransaction().replace(R.id.content, fragment).commit();
break;
case R.id.nav_gallery:
fragment = new ViewFiles();
fragment = new ViewFilesFragment();
fragmentManager.beginTransaction().replace(R.id.content, fragment).commit();
break;
}
Expand Down