Skip to content

Commit

Permalink
Removed few lint warnings; [Release]increased version code;
Browse files Browse the repository at this point in the history
  • Loading branch information
Swati4star committed Jun 6, 2018
1 parent 22b7cbe commit 4ebc2fa
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
vectorDrawables.useSupportLibrary = true
minSdkVersion 19
targetSdkVersion 27
versionCode 6
versionName "2.3"
versionCode 8
versionName "2.5"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
import butterknife.BindView;
import butterknife.ButterKnife;
import swati4star.createpdf.R;
import swati4star.createpdf.fragment.ViewFilesFragment;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class ViewFilesFragment extends Fragment
private static final int SIZE_INCREASING_ORDER_INDEX = 2;
private static final int SIZE_DECREASING_ORDER_INDEX = 3;
private Activity mActivity;
ViewFilesAdapter mViewFilesAdapter;
private ViewFilesAdapter mViewFilesAdapter;
@BindView(R.id.filesRecyclerView)
RecyclerView mViewFilesListRecyclerView;
@BindView(R.id.swipe)
Expand Down Expand Up @@ -310,14 +310,19 @@ private void populateListView() {
pdfFiles = getPdfsFromPdfFolder();
}
Log.v("done", "adding");
if (mCurrentSortingIndex == NAME_INDEX) {
sortByNameAlphabetical(pdfFiles);
} else if (mCurrentSortingIndex == DATE_INDEX) {
sortFilesByDateNewestToOldest(pdfFiles);
} else if (mCurrentSortingIndex == SIZE_INCREASING_ORDER_INDEX) {
sortFilesBySizeIncreasingOrder(pdfFiles);
} else if (mCurrentSortingIndex == SIZE_DECREASING_ORDER_INDEX) {
sortFilesBySizeDecreasingOrder(pdfFiles);
switch (mCurrentSortingIndex) {
case NAME_INDEX:
sortByNameAlphabetical(pdfFiles);
break;
case DATE_INDEX:
sortFilesByDateNewestToOldest(pdfFiles);
break;
case SIZE_INCREASING_ORDER_INDEX:
sortFilesBySizeIncreasingOrder(pdfFiles);
break;
case SIZE_DECREASING_ORDER_INDEX:
sortFilesBySizeDecreasingOrder(pdfFiles);
break;
}
mViewFilesAdapter.setData(pdfFiles);
mViewFilesListRecyclerView.setAdapter(mViewFilesAdapter);
Expand Down

0 comments on commit 4ebc2fa

Please sign in to comment.