From 6c92ed6559df5bf945365f447f027f9599d2f784 Mon Sep 17 00:00:00 2001
From: Foivos Proestakis <115726918+foivospro@users.noreply.github.com>
Date: Sat, 30 Mar 2024 12:15:48 +0200
Subject: [PATCH] Fix lint warnings and improve code quality 1. Added content
descriptions to images without contentDescription attributes to enhance
accessibility. 2. Set android:required="false" for unsupported Chrome OS
hardware feature to ensure compatibility with all Chrome OS devices. 3.
Updated screenOrientation value to resolve compatibility issues. 4. Removed
redundant labels on activities. 5. Added explicit nullness information (e.g.,
@nonnull or @nullable) to improve Kotlin referencing. 6. Removed unused
resources to optimize build performance. 7. Updated backup configuration to
use android:dataExtractionRules for Android 12 and higher. 8. Applied
borderless style to buttons for improved usability. 9. Converted images to
WebP format for better compression. 10. Enabled text selection for dynamic
text to improve usability. 11. Fixed duplicate property key.
---
app/src/main/AndroidManifest.xml | 9 ++--
.../createpdf/activity/CropImageActivity.java | 5 ++-
.../activity/FavouritesActivity.java | 3 +-
.../createpdf/activity/ImageEditor.java | 7 +--
.../activity/ImagesPreviewActivity.java | 6 ++-
.../createpdf/activity/MainActivity.java | 6 +--
.../createpdf/activity/PreviewActivity.java | 6 ++-
.../createpdf/activity/RearrangeImages.java | 6 ++-
.../createpdf/activity/RearrangePdfPages.java | 7 ++-
.../createpdf/activity/SplashActivity.java | 3 +-
.../createpdf/activity/WelcomeActivity.java | 5 ++-
.../createpdf/adapter/BrushItemAdapter.java | 6 +--
.../adapter/EnhancementOptionsAdapter.java | 4 +-
.../adapter/ExtractImagesAdapter.java | 6 +--
.../createpdf/adapter/FAQAdapter.java | 2 +-
.../createpdf/adapter/FilesListAdapter.java | 6 +--
.../createpdf/adapter/HistoryAdapter.java | 4 +-
.../adapter/ImageFiltersAdapter.java | 4 +-
.../createpdf/adapter/MergeFilesAdapter.java | 6 +--
.../adapter/MergeSelectedFilesAdapter.java | 8 ++--
.../createpdf/adapter/PreviewAdapter.java | 5 ++-
.../adapter/PreviewImageOptionsAdapter.java | 4 +-
.../adapter/RearrangeImagesAdapter.java | 6 +--
.../adapter/RearrangePdfAdapter.java | 6 +--
.../createpdf/adapter/RecentListAdapter.java | 4 +-
.../createpdf/adapter/ViewFilesAdapter.java | 12 +++---
.../createpdf/adapter/WhatsNewAdapter.java | 2 +-
.../createpdf/database/AppDatabase.java | 5 ++-
.../createpdf/database/DatabaseHelper.java | 6 ++-
.../createpdf/database/History.java | 12 ++++--
.../createpdf/database/HistoryDao.java | 7 ++-
.../createpdf/fragment/AboutUsFragment.java | 7 +--
.../createpdf/fragment/AddImagesFragment.java | 13 +++---
.../createpdf/fragment/AddTextFragment.java | 13 +++---
.../fragment/ExceltoPdfFragment.java | 13 +++---
.../fragment/ExtractTextFragment.java | 13 +++---
.../createpdf/fragment/FAQFragment.java | 8 ++--
.../fragment/FavouritesFragment.java | 9 ++--
.../createpdf/fragment/HistoryFragment.java | 8 ++--
.../createpdf/fragment/HomeFragment.java | 7 +--
.../fragment/ImageToPdfFragment.java | 10 +++--
.../createpdf/fragment/InvertPdfFragment.java | 17 ++++----
.../fragment/MergeFilesFragment.java | 19 +++++----
.../fragment/PdfToImageFragment.java | 17 ++++----
.../fragment/QrBarcodeScanFragment.java | 11 ++---
.../RemoveDuplicatePagesFragment.java | 15 ++++---
.../fragment/RemovePagesFragment.java | 17 ++++----
.../createpdf/fragment/SettingsFragment.java | 9 ++--
.../fragment/SplitFilesFragment.java | 15 ++++---
.../createpdf/fragment/ViewFilesFragment.java | 12 +++---
.../createpdf/fragment/ZipToPdfFragment.java | 2 +-
.../fragment/texttopdf/FontColorEnhancer.java | 1 +
.../texttopdf/FontFamilyEnhancer.java | 1 +
.../fragment/texttopdf/FontSizeEnhancer.java | 1 +
.../fragment/texttopdf/PageColorEnhancer.java | 1 +
.../fragment/texttopdf/PageSizeEnhancer.java | 1 +
.../fragment/texttopdf/PasswordEnhancer.java | 1 +
.../fragment/texttopdf/TextToPdfFragment.java | 9 ++--
.../interfaces/BottomSheetPopulate.java | 4 +-
.../createpdf/interfaces/Enhancer.java | 3 ++
.../interfaces/ExtractImagesListener.java | 4 +-
.../interfaces/ItemSelectedListener.java | 4 +-
.../interfaces/MergeFilesListener.java | 4 +-
.../OnFilterItemClickedListener.java | 4 +-
.../interfaces/OnPDFCompressedInterface.java | 4 +-
.../interfaces/OnPDFCreatedInterface.java | 4 +-
.../interfaces/OnPdfReorderedInterface.java | 4 +-
.../model/EnhancementOptionsEntity.java | 14 +++---
.../swati4star/createpdf/model/FAQItem.java | 10 +++--
.../createpdf/model/FilterItem.java | 10 +++--
.../createpdf/model/ImageToPDFOptions.java | 25 +++++++----
.../swati4star/createpdf/model/PDFFile.java | 7 ++-
.../createpdf/model/PDFOptions.java | 14 ++++--
.../model/PreviewImageOptionItem.java | 7 ++-
.../createpdf/model/TextToPDFOptions.java | 39 +++++++++++++----
.../swati4star/createpdf/model/Watermark.java | 11 +++--
.../swati4star/createpdf/model/WhatsNew.java | 13 ++++--
.../preferences/TextToPdfPreferences.java | 2 +
.../FragmentManagement.java | 4 +-
.../util/AddTextEnhancementOptionsUtils.java | 10 +++--
.../createpdf/util/BottomSheetCallback.java | 2 +-
.../createpdf/util/BottomSheetUtils.java | 10 +++--
.../swati4star/createpdf/util/BrushUtils.java | 4 ++
.../swati4star/createpdf/util/ColorUtils.java | 3 ++
.../createpdf/util/CommonCodeUtils.java | 21 +++++----
.../swati4star/createpdf/util/CreatePdf.java | 4 +-
.../createpdf/util/DialogUtils.java | 26 ++++++++----
.../createpdf/util/DirectoryUtils.java | 6 ++-
.../createpdf/util/DocFileReader.java | 6 ++-
.../createpdf/util/DocxFileReader.java | 6 ++-
.../createpdf/util/ExcelToPDFAsync.java | 6 ++-
.../createpdf/util/ExtractImages.java | 4 +-
.../createpdf/util/FavouritesPreferences.java | 5 ++-
.../createpdf/util/FeedbackUtils.java | 8 ++--
.../createpdf/util/FileInfoUtils.java | 8 +++-
.../swati4star/createpdf/util/FileReader.java | 6 ++-
.../createpdf/util/FileSortUtils.java | 5 ++-
.../createpdf/util/FileUriUtils.java | 6 ++-
.../swati4star/createpdf/util/FileUtils.java | 40 +++++++++++-------
.../createpdf/util/FragmentUtils.java | 8 ++--
.../util/ImageEnhancementOptionsUtils.java | 8 +++-
.../createpdf/util/ImageFilterUtils.java | 6 ++-
.../createpdf/util/ImageSortUtils.java | 5 ++-
.../swati4star/createpdf/util/ImageUtils.java | 22 +++++++---
.../swati4star/createpdf/util/InvertPdf.java | 4 +-
.../createpdf/util/MergeHelper.java | 6 ++-
.../swati4star/createpdf/util/MergePdf.java | 6 ++-
.../util/MergePdfEnhancementOptionsUtils.java | 6 ++-
.../createpdf/util/MorphButtonUtility.java | 23 +++++-----
.../createpdf/util/PDFEncryptionUtility.java | 15 ++++---
.../createpdf/util/PDFRotationUtils.java | 6 ++-
.../swati4star/createpdf/util/PDFUtils.java | 16 +++----
.../createpdf/util/PageSizeUtils.java | 9 +++-
.../createpdf/util/PdfToImages.java | 6 ++-
.../createpdf/util/PermissionsUtils.java | 11 ++---
.../createpdf/util/PopulateList.java | 6 +--
.../createpdf/util/RealPathUtil.java | 6 ++-
.../swati4star/createpdf/util/RecentUtil.java | 10 +++--
.../createpdf/util/RemoveDuplicates.java | 4 +-
.../createpdf/util/ResultUtils.java | 5 ++-
.../createpdf/util/SettingsOptions.java | 5 ++-
.../createpdf/util/SharedPreferencesUtil.java | 7 ++-
.../createpdf/util/SplitPDFUtils.java | 9 ++--
.../createpdf/util/StringUtils.java | 22 ++++++----
.../createpdf/util/TextFileReader.java | 6 ++-
.../createpdf/util/TextToPDFUtils.java | 6 ++-
.../createpdf/util/TextToPdfAsync.java | 6 ++-
.../swati4star/createpdf/util/ThemeUtils.java | 9 ++--
.../util/ViewFilesDividerItemDecoration.java | 4 +-
.../createpdf/util/WatermarkUtils.java | 9 ++--
.../createpdf/util/WhatsNewUtils.java | 4 +-
.../swati4star/createpdf/util/ZipToPdf.java | 5 ++-
app/src/main/res/drawable-hdpi/auto_fix.png | Bin 10979 -> 0 bytes
app/src/main/res/drawable-hdpi/auto_fix.webp | Bin 0 -> 8512 bytes
app/src/main/res/drawable-hdpi/black.png | Bin 5818 -> 0 bytes
app/src/main/res/drawable-hdpi/black.webp | Bin 0 -> 3438 bytes
app/src/main/res/drawable-hdpi/brightness.png | Bin 10397 -> 0 bytes
.../main/res/drawable-hdpi/brightness.webp | Bin 0 -> 8342 bytes
app/src/main/res/drawable-hdpi/circle.png | Bin 50903 -> 0 bytes
app/src/main/res/drawable-hdpi/circle.webp | Bin 0 -> 32842 bytes
app/src/main/res/drawable-hdpi/contrast.png | Bin 10577 -> 0 bytes
app/src/main/res/drawable-hdpi/contrast.webp | Bin 0 -> 8732 bytes
.../main/res/drawable-hdpi/cross_process.png | Bin 10835 -> 0 bytes
.../main/res/drawable-hdpi/cross_process.webp | Bin 0 -> 8040 bytes
.../main/res/drawable-hdpi/documentary.png | Bin 6133 -> 0 bytes
.../main/res/drawable-hdpi/documentary.webp | Bin 0 -> 3134 bytes
app/src/main/res/drawable-hdpi/due_tone.png | Bin 7184 -> 0 bytes
app/src/main/res/drawable-hdpi/due_tone.webp | Bin 0 -> 5306 bytes
.../main/res/drawable-hdpi/extract_images.png | Bin 46325 -> 0 bytes
.../res/drawable-hdpi/extract_images.webp | Bin 0 -> 22318 bytes
app/src/main/res/drawable-hdpi/fill_light.png | Bin 8643 -> 0 bytes
.../main/res/drawable-hdpi/fill_light.webp | Bin 0 -> 7214 bytes
.../res/drawable-hdpi/flip_horizontal.png | Bin 11203 -> 0 bytes
.../res/drawable-hdpi/flip_horizontal.webp | Bin 0 -> 8744 bytes
.../main/res/drawable-hdpi/flip_vertical.png | Bin 11225 -> 0 bytes
.../main/res/drawable-hdpi/flip_vertical.webp | Bin 0 -> 8730 bytes
app/src/main/res/drawable-hdpi/grain.png | Bin 10920 -> 0 bytes
app/src/main/res/drawable-hdpi/grain.webp | Bin 0 -> 9120 bytes
app/src/main/res/drawable-hdpi/lomish.png | Bin 13512 -> 0 bytes
app/src/main/res/drawable-hdpi/lomish.webp | Bin 0 -> 9072 bytes
app/src/main/res/drawable-hdpi/negative.png | Bin 10571 -> 0 bytes
app/src/main/res/drawable-hdpi/negative.webp | Bin 0 -> 8778 bytes
app/src/main/res/drawable-hdpi/none.png | Bin 11211 -> 0 bytes
app/src/main/res/drawable-hdpi/none.webp | Bin 0 -> 8748 bytes
app/src/main/res/drawable-hdpi/poster.png | Bin 9341 -> 0 bytes
app/src/main/res/drawable-hdpi/poster.webp | Bin 0 -> 8442 bytes
.../main/res/drawable-hdpi/qrcode_to_pdf.png | Bin 51503 -> 0 bytes
.../main/res/drawable-hdpi/qrcode_to_pdf.webp | Bin 0 -> 23796 bytes
.../main/res/drawable-hdpi/remove_reorder.png | Bin 45082 -> 0 bytes
.../res/drawable-hdpi/remove_reorder.webp | Bin 0 -> 21882 bytes
app/src/main/res/drawable-hdpi/rotate.png | Bin 11207 -> 0 bytes
app/src/main/res/drawable-hdpi/rotate.webp | Bin 0 -> 8754 bytes
app/src/main/res/drawable-hdpi/saturate.png | Bin 9127 -> 0 bytes
app/src/main/res/drawable-hdpi/saturate.webp | Bin 0 -> 7980 bytes
app/src/main/res/drawable-hdpi/sepia.png | Bin 10972 -> 0 bytes
app/src/main/res/drawable-hdpi/sepia.webp | Bin 0 -> 8074 bytes
app/src/main/res/drawable-hdpi/sharpen.png | Bin 10837 -> 0 bytes
app/src/main/res/drawable-hdpi/sharpen.webp | Bin 0 -> 9112 bytes
app/src/main/res/drawable-hdpi/temp.png | Bin 10187 -> 0 bytes
app/src/main/res/drawable-hdpi/temp.webp | Bin 0 -> 7604 bytes
.../main/res/drawable-hdpi/text_to_pdf.png | Bin 69784 -> 0 bytes
.../main/res/drawable-hdpi/text_to_pdf.webp | Bin 0 -> 33676 bytes
app/src/main/res/drawable-hdpi/vignette.png | Bin 10411 -> 0 bytes
app/src/main/res/drawable-hdpi/vignette.webp | Bin 0 -> 7082 bytes
app/src/main/res/drawable-xxhdpi/circle.png | Bin 101813 -> 0 bytes
app/src/main/res/drawable-xxhdpi/circle.webp | Bin 0 -> 58258 bytes
app/src/main/res/drawable-xxhdpi/tint.gif | Bin 8964 -> 0 bytes
app/src/main/res/drawable-xxhdpi/tint.webp | Bin 0 -> 7802 bytes
.../main/res/drawable-xxxhdpi/auto_fix.png | Bin 68140 -> 0 bytes
.../main/res/drawable-xxxhdpi/auto_fix.webp | Bin 0 -> 39820 bytes
app/src/main/res/drawable-xxxhdpi/black.png | Bin 30425 -> 0 bytes
app/src/main/res/drawable-xxxhdpi/black.webp | Bin 0 -> 15348 bytes
.../main/res/drawable-xxxhdpi/brightness.png | Bin 63431 -> 0 bytes
.../main/res/drawable-xxxhdpi/brightness.webp | Bin 0 -> 37748 bytes
.../main/res/drawable-xxxhdpi/contrast.png | Bin 63380 -> 0 bytes
.../main/res/drawable-xxxhdpi/contrast.webp | Bin 0 -> 40372 bytes
.../res/drawable-xxxhdpi/cross_process.png | Bin 70068 -> 0 bytes
.../res/drawable-xxxhdpi/cross_process.webp | Bin 0 -> 37078 bytes
.../main/res/drawable-xxxhdpi/documentary.png | Bin 33747 -> 0 bytes
.../res/drawable-xxxhdpi/documentary.webp | Bin 0 -> 15246 bytes
.../main/res/drawable-xxxhdpi/due_tone.png | Bin 41130 -> 0 bytes
.../main/res/drawable-xxxhdpi/due_tone.webp | Bin 0 -> 24390 bytes
.../res/drawable-xxxhdpi/extract_images.png | Bin 175055 -> 0 bytes
.../res/drawable-xxxhdpi/extract_images.webp | Bin 0 -> 59798 bytes
.../main/res/drawable-xxxhdpi/fill_light.png | Bin 49507 -> 0 bytes
.../main/res/drawable-xxxhdpi/fill_light.webp | Bin 0 -> 32552 bytes
.../res/drawable-xxxhdpi/flip_horizontal.png | Bin 71781 -> 0 bytes
.../res/drawable-xxxhdpi/flip_horizontal.webp | Bin 0 -> 38984 bytes
.../res/drawable-xxxhdpi/flip_vertical.png | Bin 71770 -> 0 bytes
.../res/drawable-xxxhdpi/flip_vertical.webp | Bin 0 -> 40140 bytes
app/src/main/res/drawable-xxxhdpi/grain.png | Bin 67896 -> 0 bytes
app/src/main/res/drawable-xxxhdpi/grain.webp | Bin 0 -> 43920 bytes
app/src/main/res/drawable-xxxhdpi/lomish.png | Bin 91004 -> 0 bytes
app/src/main/res/drawable-xxxhdpi/lomish.webp | Bin 0 -> 50882 bytes
.../main/res/drawable-xxxhdpi/negative.png | Bin 63305 -> 0 bytes
.../main/res/drawable-xxxhdpi/negative.webp | Bin 0 -> 41062 bytes
app/src/main/res/drawable-xxxhdpi/none.png | Bin 71784 -> 0 bytes
app/src/main/res/drawable-xxxhdpi/none.webp | Bin 0 -> 39368 bytes
app/src/main/res/drawable-xxxhdpi/poster.png | Bin 49418 -> 0 bytes
app/src/main/res/drawable-xxxhdpi/poster.webp | Bin 0 -> 36148 bytes
.../res/drawable-xxxhdpi/qrcode_to_pdf.png | Bin 191410 -> 0 bytes
.../res/drawable-xxxhdpi/qrcode_to_pdf.webp | Bin 0 -> 65528 bytes
.../res/drawable-xxxhdpi/remove_reorder.png | Bin 171700 -> 0 bytes
.../res/drawable-xxxhdpi/remove_reorder.webp | Bin 0 -> 57974 bytes
app/src/main/res/drawable-xxxhdpi/rotate.png | Bin 71786 -> 0 bytes
app/src/main/res/drawable-xxxhdpi/rotate.webp | Bin 0 -> 39802 bytes
.../main/res/drawable-xxxhdpi/saturate.png | Bin 50723 -> 0 bytes
.../main/res/drawable-xxxhdpi/saturate.webp | Bin 0 -> 34678 bytes
app/src/main/res/drawable-xxxhdpi/sepia.png | Bin 70211 -> 0 bytes
app/src/main/res/drawable-xxxhdpi/sepia.webp | Bin 0 -> 38032 bytes
app/src/main/res/drawable-xxxhdpi/sharpen.png | Bin 66332 -> 0 bytes
.../main/res/drawable-xxxhdpi/sharpen.webp | Bin 0 -> 42980 bytes
app/src/main/res/drawable-xxxhdpi/temp.png | Bin 63646 -> 0 bytes
app/src/main/res/drawable-xxxhdpi/temp.webp | Bin 0 -> 35868 bytes
.../main/res/drawable-xxxhdpi/text_to_pdf.png | Bin 259505 -> 0 bytes
.../res/drawable-xxxhdpi/text_to_pdf.webp | Bin 0 -> 96248 bytes
.../main/res/drawable-xxxhdpi/vignette.png | Bin 66357 -> 0 bytes
.../main/res/drawable-xxxhdpi/vignette.webp | Bin 0 -> 31654 bytes
app/src/main/res/drawable/button_bg.xml | 17 --------
app/src/main/res/drawable/home.webp | Bin 105648 -> 0 bytes
app/src/main/res/drawable/ic_logo.png | Bin 1824 -> 0 bytes
app/src/main/res/drawable/ic_logo.webp | Bin 0 -> 738 bytes
.../res/drawable/ic_whats_new_black_24dp.xml | 9 ----
app/src/main/res/layout/activity_main.xml | 1 -
app/src/main/res/layout/activity_welcome.xml | 3 +-
.../main/res/layout/add_watermark_dialog.xml | 7 ---
app/src/main/res/layout/custom_dialog.xml | 1 -
.../main/res/layout/dialog_font_family.xml | 6 ---
.../main/res/layout/dialog_theme_default.xml | 4 --
app/src/main/res/layout/directory_dialog.xml | 31 --------------
.../main/res/layout/favourites_fragment.xml | 4 +-
app/src/main/res/layout/fragment_about_us.xml | 1 -
.../main/res/layout/fragment_add_images.xml | 2 -
app/src/main/res/layout/fragment_add_text.xml | 1 -
.../main/res/layout/fragment_excelto_pdf.xml | 1 -
.../main/res/layout/fragment_extract_text.xml | 1 -
.../res/layout/fragment_images_to_pdf.xml | 1 -
.../main/res/layout/fragment_invert_pdf.xml | 2 -
.../main/res/layout/fragment_pdf_to_image.xml | 7 +--
.../fragment_remove_duplicate_pages.xml | 2 -
.../main/res/layout/fragment_remove_pages.xml | 1 -
.../main/res/layout/fragment_split_files.xml | 1 -
.../layout/fragment_step_change_themes.xml | 3 +-
.../res/layout/fragment_step_create_pdf.xml | 3 +-
.../res/layout/fragment_step_excel_to_pdf.xml | 3 +-
.../layout/fragment_step_extract_images.xml | 3 +-
.../res/layout/fragment_step_merge_pdf.xml | 3 +-
.../layout/fragment_step_qrcode_to_pdf.xml | 3 +-
.../res/layout/fragment_step_remove_pages.xml | 3 +-
.../layout/fragment_step_reorder_pages.xml | 3 +-
.../res/layout/fragment_step_text_to_pdf.xml | 3 +-
.../res/layout/fragment_step_view_file.xml | 3 +-
.../main/res/layout/fragment_text_to_pdf.xml | 2 -
.../main/res/layout/fragment_view_files.xml | 1 -
.../main/res/layout/fragment_whats_new.xml | 3 +-
.../main/res/layout/fragment_zip_to_pdf.xml | 1 -
.../res/layout/image_scale_type_dialog.xml | 1 -
.../main/res/layout/item_image_extracted.xml | 3 +-
app/src/main/res/layout/item_merge_files.xml | 3 +-
.../res/layout/item_merge_selected_files.xml | 3 +-
.../res/layout/item_preview_image_options.xml | 3 +-
.../main/res/layout/item_rearrange_images.xml | 3 +-
.../layout/item_view_enhancement_option.xml | 4 +-
app/src/main/res/layout/item_whats_new.xml | 6 ++-
.../main/res/layout/layout_item_history.xml | 9 ++--
app/src/main/res/layout/list_item_filter.xml | 4 +-
.../main/res/layout/lottie_anim_dialog.xml | 1 -
app/src/main/res/layout/nav_header_main.xml | 1 -
app/src/main/res/layout/pdf_preview_item.xml | 3 +-
.../mipmap-anydpi-v26/ic_launcher_round.xml | 5 ---
app/src/main/res/mipmap-hdpi/ic_launcher.png | Bin 1690 -> 0 bytes
app/src/main/res/mipmap-hdpi/ic_launcher.webp | Bin 0 -> 1262 bytes
.../mipmap-hdpi/ic_launcher_foreground.webp | Bin 446 -> 0 bytes
.../res/mipmap-hdpi/ic_launcher_round.png | Bin 3648 -> 0 bytes
app/src/main/res/mipmap-mdpi/ic_launcher.png | Bin 1332 -> 0 bytes
app/src/main/res/mipmap-mdpi/ic_launcher.webp | Bin 0 -> 1040 bytes
.../mipmap-mdpi/ic_launcher_foreground.webp | Bin 326 -> 0 bytes
.../res/mipmap-mdpi/ic_launcher_round.png | Bin 2148 -> 0 bytes
app/src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 2299 -> 0 bytes
.../main/res/mipmap-xhdpi/ic_launcher.webp | Bin 0 -> 1712 bytes
.../mipmap-xhdpi/ic_launcher_foreground.webp | Bin 594 -> 0 bytes
.../res/mipmap-xhdpi/ic_launcher_round.png | Bin 4851 -> 0 bytes
.../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 3982 -> 0 bytes
.../main/res/mipmap-xxhdpi/ic_launcher.webp | Bin 0 -> 2354 bytes
.../mipmap-xxhdpi/ic_launcher_foreground.webp | Bin 970 -> 0 bytes
.../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 8391 -> 0 bytes
.../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 5791 -> 0 bytes
.../main/res/mipmap-xxxhdpi/ic_launcher.webp | Bin 0 -> 3516 bytes
.../ic_launcher_foreground.webp | Bin 1196 -> 0 bytes
.../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 12264 -> 0 bytes
app/src/main/res/values-bn/strings.xml | 20 ---------
app/src/main/res/values-bs/strings.xml | 20 ---------
app/src/main/res/values-de/strings.xml | 21 ---------
app/src/main/res/values-es/strings.xml | 21 ---------
app/src/main/res/values-fr/strings.xml | 20 ---------
app/src/main/res/values-hi/strings.xml | 20 ---------
app/src/main/res/values-it/strings.xml | 20 ---------
app/src/main/res/values-ja/strings.xml | 21 ---------
app/src/main/res/values-ko-rKR/strings.xml | 20 ---------
app/src/main/res/values-ko/strings.xml | 20 ---------
app/src/main/res/values-mr/strings.xml | 20 ---------
app/src/main/res/values-ne/strings.xml | 20 ---------
app/src/main/res/values-pt-rBR/strings.xml | 20 ---------
app/src/main/res/values-ru/strings.xml | 21 ---------
app/src/main/res/values-tr-rTR/strings.xml | 20 ---------
app/src/main/res/values-zh-rHK/strings.xml | 20 ---------
app/src/main/res/values-zh/strings.xml | 20 ---------
app/src/main/res/values/colors.xml | 2 -
app/src/main/res/values/dimens.xml | 3 --
app/src/main/res/values/strings.xml | 20 ---------
.../main/res/xml/data_extraction_rules.xml | 5 +++
gradle/wrapper/gradle-wrapper.properties | 1 -
332 files changed, 752 insertions(+), 897 deletions(-)
delete mode 100644 app/src/main/res/drawable-hdpi/auto_fix.png
create mode 100644 app/src/main/res/drawable-hdpi/auto_fix.webp
delete mode 100644 app/src/main/res/drawable-hdpi/black.png
create mode 100644 app/src/main/res/drawable-hdpi/black.webp
delete mode 100644 app/src/main/res/drawable-hdpi/brightness.png
create mode 100644 app/src/main/res/drawable-hdpi/brightness.webp
delete mode 100644 app/src/main/res/drawable-hdpi/circle.png
create mode 100644 app/src/main/res/drawable-hdpi/circle.webp
delete mode 100644 app/src/main/res/drawable-hdpi/contrast.png
create mode 100644 app/src/main/res/drawable-hdpi/contrast.webp
delete mode 100644 app/src/main/res/drawable-hdpi/cross_process.png
create mode 100644 app/src/main/res/drawable-hdpi/cross_process.webp
delete mode 100644 app/src/main/res/drawable-hdpi/documentary.png
create mode 100644 app/src/main/res/drawable-hdpi/documentary.webp
delete mode 100644 app/src/main/res/drawable-hdpi/due_tone.png
create mode 100644 app/src/main/res/drawable-hdpi/due_tone.webp
delete mode 100644 app/src/main/res/drawable-hdpi/extract_images.png
create mode 100644 app/src/main/res/drawable-hdpi/extract_images.webp
delete mode 100644 app/src/main/res/drawable-hdpi/fill_light.png
create mode 100644 app/src/main/res/drawable-hdpi/fill_light.webp
delete mode 100644 app/src/main/res/drawable-hdpi/flip_horizontal.png
create mode 100644 app/src/main/res/drawable-hdpi/flip_horizontal.webp
delete mode 100644 app/src/main/res/drawable-hdpi/flip_vertical.png
create mode 100644 app/src/main/res/drawable-hdpi/flip_vertical.webp
delete mode 100644 app/src/main/res/drawable-hdpi/grain.png
create mode 100644 app/src/main/res/drawable-hdpi/grain.webp
delete mode 100644 app/src/main/res/drawable-hdpi/lomish.png
create mode 100644 app/src/main/res/drawable-hdpi/lomish.webp
delete mode 100644 app/src/main/res/drawable-hdpi/negative.png
create mode 100644 app/src/main/res/drawable-hdpi/negative.webp
delete mode 100644 app/src/main/res/drawable-hdpi/none.png
create mode 100644 app/src/main/res/drawable-hdpi/none.webp
delete mode 100644 app/src/main/res/drawable-hdpi/poster.png
create mode 100644 app/src/main/res/drawable-hdpi/poster.webp
delete mode 100644 app/src/main/res/drawable-hdpi/qrcode_to_pdf.png
create mode 100644 app/src/main/res/drawable-hdpi/qrcode_to_pdf.webp
delete mode 100644 app/src/main/res/drawable-hdpi/remove_reorder.png
create mode 100644 app/src/main/res/drawable-hdpi/remove_reorder.webp
delete mode 100644 app/src/main/res/drawable-hdpi/rotate.png
create mode 100644 app/src/main/res/drawable-hdpi/rotate.webp
delete mode 100644 app/src/main/res/drawable-hdpi/saturate.png
create mode 100644 app/src/main/res/drawable-hdpi/saturate.webp
delete mode 100644 app/src/main/res/drawable-hdpi/sepia.png
create mode 100644 app/src/main/res/drawable-hdpi/sepia.webp
delete mode 100644 app/src/main/res/drawable-hdpi/sharpen.png
create mode 100644 app/src/main/res/drawable-hdpi/sharpen.webp
delete mode 100644 app/src/main/res/drawable-hdpi/temp.png
create mode 100644 app/src/main/res/drawable-hdpi/temp.webp
delete mode 100644 app/src/main/res/drawable-hdpi/text_to_pdf.png
create mode 100644 app/src/main/res/drawable-hdpi/text_to_pdf.webp
delete mode 100644 app/src/main/res/drawable-hdpi/vignette.png
create mode 100644 app/src/main/res/drawable-hdpi/vignette.webp
delete mode 100644 app/src/main/res/drawable-xxhdpi/circle.png
create mode 100644 app/src/main/res/drawable-xxhdpi/circle.webp
delete mode 100644 app/src/main/res/drawable-xxhdpi/tint.gif
create mode 100644 app/src/main/res/drawable-xxhdpi/tint.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/auto_fix.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/auto_fix.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/black.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/black.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/brightness.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/brightness.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/contrast.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/contrast.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/cross_process.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/cross_process.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/documentary.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/documentary.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/due_tone.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/due_tone.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/extract_images.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/extract_images.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/fill_light.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/fill_light.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/flip_horizontal.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/flip_horizontal.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/flip_vertical.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/flip_vertical.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/grain.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/grain.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/lomish.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/lomish.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/negative.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/negative.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/none.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/none.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/poster.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/poster.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/qrcode_to_pdf.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/qrcode_to_pdf.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/remove_reorder.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/remove_reorder.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/rotate.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/rotate.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/saturate.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/saturate.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/sepia.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/sepia.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/sharpen.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/sharpen.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/temp.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/temp.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/text_to_pdf.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/text_to_pdf.webp
delete mode 100644 app/src/main/res/drawable-xxxhdpi/vignette.png
create mode 100644 app/src/main/res/drawable-xxxhdpi/vignette.webp
delete mode 100644 app/src/main/res/drawable/button_bg.xml
delete mode 100644 app/src/main/res/drawable/home.webp
delete mode 100644 app/src/main/res/drawable/ic_logo.png
create mode 100644 app/src/main/res/drawable/ic_logo.webp
delete mode 100644 app/src/main/res/drawable/ic_whats_new_black_24dp.xml
delete mode 100644 app/src/main/res/layout/directory_dialog.xml
delete mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
delete mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher.png
create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher.webp
delete mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp
delete mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher_round.png
delete mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher.png
create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher.webp
delete mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp
delete mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher_round.png
delete mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher.png
create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher.webp
delete mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp
delete mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
delete mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher.png
create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
delete mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp
delete mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
delete mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
delete mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp
delete mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
create mode 100644 app/src/main/res/xml/data_extraction_rules.xml
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 3a0477a42..d4ecac4bd 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -9,7 +9,8 @@
android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
tools:ignore="scopedStorage" />
-
+
@@ -27,7 +28,8 @@
android:requestLegacyExternalStorage="true"
android:supportsRtl="true"
android:theme="@style/AppThemeWhite"
- tools:ignore="GoogleAppIndexingWarning,RtlEnabled">
+ tools:ignore="GoogleAppIndexingWarning,RtlEnabled"
+ android:dataExtractionRules="@xml/data_extraction_rules">
diff --git a/app/src/main/java/swati4star/createpdf/activity/CropImageActivity.java b/app/src/main/java/swati4star/createpdf/activity/CropImageActivity.java
index 5728e7396..d044e2717 100644
--- a/app/src/main/java/swati4star/createpdf/activity/CropImageActivity.java
+++ b/app/src/main/java/swati4star/createpdf/activity/CropImageActivity.java
@@ -14,6 +14,7 @@
import android.widget.ImageView;
import android.widget.TextView;
+import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import com.google.android.material.appbar.MaterialToolbar;
@@ -41,7 +42,7 @@ public class CropImageActivity extends AppCompatActivity {
private CropImageView mCropImageView;
@Override
- public void onCreate(Bundle savedInstanceState) {
+ public void onCreate(@NonNull Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_crop_image_activity);
ButterKnife.bind(this);
@@ -138,7 +139,7 @@ public boolean onCreateOptionsMenu(Menu menu) {
}
@Override
- public boolean onOptionsItemSelected(MenuItem item) {
+ public boolean onOptionsItemSelected(@NonNull MenuItem item) {
if (item.getItemId() == android.R.id.home) {
setResult(Activity.RESULT_CANCELED);
finish();
diff --git a/app/src/main/java/swati4star/createpdf/activity/FavouritesActivity.java b/app/src/main/java/swati4star/createpdf/activity/FavouritesActivity.java
index 538b835ec..4061f6367 100644
--- a/app/src/main/java/swati4star/createpdf/activity/FavouritesActivity.java
+++ b/app/src/main/java/swati4star/createpdf/activity/FavouritesActivity.java
@@ -27,6 +27,7 @@
import android.view.Menu;
import android.view.MenuItem;
+import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
@@ -65,7 +66,7 @@ public boolean onCreateOptionsMenu(Menu menu) {
}
@Override
- public boolean onOptionsItemSelected(MenuItem item) {
+ public boolean onOptionsItemSelected(@NonNull MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home:
onBackPressed();
diff --git a/app/src/main/java/swati4star/createpdf/activity/ImageEditor.java b/app/src/main/java/swati4star/createpdf/activity/ImageEditor.java
index 9e77f6c12..60bb9aff0 100644
--- a/app/src/main/java/swati4star/createpdf/activity/ImageEditor.java
+++ b/app/src/main/java/swati4star/createpdf/activity/ImageEditor.java
@@ -71,14 +71,15 @@ public class ImageEditor extends AppCompatActivity implements OnFilterItemClicke
private boolean mDoodleSelected = false;
private PhotoEditor mPhotoEditor;
- public static Intent getStartIntent(Context context, ArrayList uris) {
+ @NonNull
+ public static Intent getStartIntent(@NonNull Context context, @NonNull ArrayList uris) {
Intent intent = new Intent(context, ImageEditor.class);
intent.putExtra(IMAGE_EDITOR_KEY, uris);
return intent;
}
@Override
- protected void onCreate(Bundle savedInstanceState) {
+ protected void onCreate(@NonNull Bundle savedInstanceState) {
ThemeUtils.getInstance().setThemeApp(this);
@@ -236,7 +237,7 @@ private void initRecyclerView() {
* @param position - position of item clicked
*/
@Override
- public void onItemClick(View view, int position) {
+ public void onItemClick(@NonNull View view, int position) {
//setting mClicked true when none filter is selected otherwise false
mClicked = position == 0;
// Brush effect is in second position
diff --git a/app/src/main/java/swati4star/createpdf/activity/ImagesPreviewActivity.java b/app/src/main/java/swati4star/createpdf/activity/ImagesPreviewActivity.java
index 3142dec94..31e9d65aa 100644
--- a/app/src/main/java/swati4star/createpdf/activity/ImagesPreviewActivity.java
+++ b/app/src/main/java/swati4star/createpdf/activity/ImagesPreviewActivity.java
@@ -6,6 +6,7 @@
import android.content.Intent;
import android.os.Bundle;
+import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager.widget.ViewPager;
@@ -27,14 +28,15 @@ public class ImagesPreviewActivity extends AppCompatActivity {
* @param uris - extra images uri
* @return - start intent
*/
- public static Intent getStartIntent(Context context, ArrayList uris) {
+ @NonNull
+ public static Intent getStartIntent(@NonNull Context context, @NonNull ArrayList uris) {
Intent intent = new Intent(context, ImagesPreviewActivity.class);
intent.putExtra(PREVIEW_IMAGES, uris);
return intent;
}
@Override
- protected void onCreate(Bundle savedInstanceState) {
+ protected void onCreate(@NonNull Bundle savedInstanceState) {
ThemeUtils.getInstance().setThemeApp(this);
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_preview_images);
diff --git a/app/src/main/java/swati4star/createpdf/activity/MainActivity.java b/app/src/main/java/swati4star/createpdf/activity/MainActivity.java
index 078bf25cc..026c15d92 100644
--- a/app/src/main/java/swati4star/createpdf/activity/MainActivity.java
+++ b/app/src/main/java/swati4star/createpdf/activity/MainActivity.java
@@ -61,7 +61,7 @@ public class MainActivity extends AppCompatActivity
private FragmentManagement mFragmentManagement;
@Override
- protected void onCreate(Bundle savedInstanceState) {
+ protected void onCreate(@NonNull Bundle savedInstanceState) {
ThemeUtils.getInstance().setThemeApp(this);
super.onCreate(savedInstanceState);
@@ -145,7 +145,7 @@ public boolean onCreateOptionsMenu(Menu menu) {
}
@Override
- public boolean onOptionsItemSelected(MenuItem item) {
+ public boolean onOptionsItemSelected(@NonNull MenuItem item) {
if (item.getItemId() == R.id.menu_favourites_item) {
setTitle(R.string.favourites);
mFragmentManagement.favouritesFragmentOption();
@@ -375,7 +375,7 @@ public void onNeutralButtonClick() {
*
* @param imageUris - ArrayList of image uri's in temp directory
*/
- public void convertImagesToPdf(ArrayList imageUris) {
+ public void convertImagesToPdf(@NonNull ArrayList imageUris) {
Fragment fragment = new ImageToPdfFragment();
Bundle bundle = new Bundle();
bundle.putParcelableArrayList(getString(R.string.bundleKey), imageUris);
diff --git a/app/src/main/java/swati4star/createpdf/activity/PreviewActivity.java b/app/src/main/java/swati4star/createpdf/activity/PreviewActivity.java
index af8f01bfa..749917a37 100644
--- a/app/src/main/java/swati4star/createpdf/activity/PreviewActivity.java
+++ b/app/src/main/java/swati4star/createpdf/activity/PreviewActivity.java
@@ -7,6 +7,7 @@
import android.content.Intent;
import android.os.Bundle;
+import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
@@ -36,14 +37,15 @@ public class PreviewActivity extends AppCompatActivity implements PreviewImageOp
private PreviewAdapter mPreviewAdapter;
private ViewPager mViewPager;
- public static Intent getStartIntent(Context context, ArrayList uris) {
+ @NonNull
+ public static Intent getStartIntent(@NonNull Context context, @NonNull ArrayList uris) {
Intent intent = new Intent(context, PreviewActivity.class);
intent.putExtra(PREVIEW_IMAGES, uris);
return intent;
}
@Override
- protected void onCreate(Bundle savedInstanceState) {
+ protected void onCreate(@NonNull Bundle savedInstanceState) {
ThemeUtils.getInstance().setThemeApp(this);
super.onCreate(savedInstanceState);
diff --git a/app/src/main/java/swati4star/createpdf/activity/RearrangeImages.java b/app/src/main/java/swati4star/createpdf/activity/RearrangeImages.java
index 031fe72ca..62e2c8075 100644
--- a/app/src/main/java/swati4star/createpdf/activity/RearrangeImages.java
+++ b/app/src/main/java/swati4star/createpdf/activity/RearrangeImages.java
@@ -11,6 +11,7 @@
import android.preference.PreferenceManager;
import android.view.MenuItem;
+import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
@@ -41,7 +42,8 @@ public class RearrangeImages extends AppCompatActivity implements RearrangeImage
private RearrangeImagesAdapter mRearrangeImagesAdapter;
private SharedPreferences mSharedPreferences;
- public static Intent getStartIntent(Context context, ArrayList uris) {
+ @NonNull
+ public static Intent getStartIntent(@NonNull Context context, @NonNull ArrayList uris) {
Intent intent = new Intent(context, RearrangeImages.class);
intent.putExtra(PREVIEW_IMAGES, uris);
return intent;
@@ -122,7 +124,7 @@ public void onBackPressed() {
}
@Override
- public boolean onOptionsItemSelected(MenuItem item) {
+ public boolean onOptionsItemSelected(@NonNull MenuItem item) {
if (item.getItemId() == android.R.id.home) {
passUris();
return true;
diff --git a/app/src/main/java/swati4star/createpdf/activity/RearrangePdfPages.java b/app/src/main/java/swati4star/createpdf/activity/RearrangePdfPages.java
index 6b2e5c2f3..8e65051c4 100644
--- a/app/src/main/java/swati4star/createpdf/activity/RearrangePdfPages.java
+++ b/app/src/main/java/swati4star/createpdf/activity/RearrangePdfPages.java
@@ -15,6 +15,7 @@
import android.view.View;
import android.widget.Button;
+import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
@@ -36,6 +37,7 @@
public class RearrangePdfPages extends AppCompatActivity implements RearrangePdfAdapter.OnClickListener {
+ @NonNull
public static ArrayList mImages;
@BindView(R.id.recyclerView)
RecyclerView mRecyclerView;
@@ -45,7 +47,8 @@ public class RearrangePdfPages extends AppCompatActivity implements RearrangePdf
private SharedPreferences mSharedPreferences;
private ArrayList mSequence, mInitialSequence;
- public static Intent getStartIntent(Context context) {
+ @NonNull
+ public static Intent getStartIntent(@NonNull Context context) {
return new Intent(context, RearrangePdfPages.class);
}
@@ -155,7 +158,7 @@ public void onBackPressed() {
}
@Override
- public boolean onOptionsItemSelected(MenuItem item) {
+ public boolean onOptionsItemSelected(@NonNull MenuItem item) {
if (item.getItemId() == android.R.id.home) {
passUris();
return true;
diff --git a/app/src/main/java/swati4star/createpdf/activity/SplashActivity.java b/app/src/main/java/swati4star/createpdf/activity/SplashActivity.java
index 1ac03e471..5562ad79d 100644
--- a/app/src/main/java/swati4star/createpdf/activity/SplashActivity.java
+++ b/app/src/main/java/swati4star/createpdf/activity/SplashActivity.java
@@ -3,12 +3,13 @@
import android.content.Intent;
import android.os.Bundle;
+import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
public class SplashActivity extends AppCompatActivity {
@Override
- protected void onCreate(Bundle savedInstanceState) {
+ protected void onCreate(@NonNull Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
startActivity(new Intent(SplashActivity.this, MainActivity.class));
finish();
diff --git a/app/src/main/java/swati4star/createpdf/activity/WelcomeActivity.java b/app/src/main/java/swati4star/createpdf/activity/WelcomeActivity.java
index a2db924ac..89cfffcf7 100644
--- a/app/src/main/java/swati4star/createpdf/activity/WelcomeActivity.java
+++ b/app/src/main/java/swati4star/createpdf/activity/WelcomeActivity.java
@@ -23,10 +23,13 @@
public class WelcomeActivity extends AppCompatActivity {
+ @NonNull
@BindView(R.id.view_pager)
public ViewPager mViewPager;
+ @NonNull
@BindView(R.id.layoutDots)
public LinearLayout mDotsLayout;
+ @NonNull
@BindView(R.id.btn_skip)
public Button mBtnSkip;
@@ -51,7 +54,7 @@ public void onPageScrollStateChanged(int arg0) {
};
@Override
- protected void onCreate(Bundle savedInstanceState) {
+ protected void onCreate(@NonNull Bundle savedInstanceState) {
ThemeUtils.getInstance().setThemeApp(this);
super.onCreate(savedInstanceState);
diff --git a/app/src/main/java/swati4star/createpdf/adapter/BrushItemAdapter.java b/app/src/main/java/swati4star/createpdf/adapter/BrushItemAdapter.java
index 2ee7dd7b7..05497c4d8 100644
--- a/app/src/main/java/swati4star/createpdf/adapter/BrushItemAdapter.java
+++ b/app/src/main/java/swati4star/createpdf/adapter/BrushItemAdapter.java
@@ -23,9 +23,9 @@ public class BrushItemAdapter extends RecyclerView.Adapter mBrushItems;
- public BrushItemAdapter(Context context,
- OnItemClickListener onItemClickListener,
- List brushItems) {
+ public BrushItemAdapter(@NonNull Context context,
+ @NonNull OnItemClickListener onItemClickListener,
+ @NonNull List brushItems) {
mBrushItems = brushItems;
mOnItemClickListener = onItemClickListener;
mContext = context;
diff --git a/app/src/main/java/swati4star/createpdf/adapter/EnhancementOptionsAdapter.java b/app/src/main/java/swati4star/createpdf/adapter/EnhancementOptionsAdapter.java
index adaf01893..5b83fbede 100644
--- a/app/src/main/java/swati4star/createpdf/adapter/EnhancementOptionsAdapter.java
+++ b/app/src/main/java/swati4star/createpdf/adapter/EnhancementOptionsAdapter.java
@@ -25,8 +25,8 @@ public class EnhancementOptionsAdapter
private final OnItemClickListener mOnItemClickListener;
private final List mEnhancementOptionsEntityList;
- public EnhancementOptionsAdapter(OnItemClickListener mOnItemClickListener,
- List mEnhancementOptionsEntityList) {
+ public EnhancementOptionsAdapter(@NonNull OnItemClickListener mOnItemClickListener,
+ @NonNull List mEnhancementOptionsEntityList) {
this.mOnItemClickListener = mOnItemClickListener;
this.mEnhancementOptionsEntityList = mEnhancementOptionsEntityList;
}
diff --git a/app/src/main/java/swati4star/createpdf/adapter/ExtractImagesAdapter.java b/app/src/main/java/swati4star/createpdf/adapter/ExtractImagesAdapter.java
index 0088d1b35..96f2f77c6 100644
--- a/app/src/main/java/swati4star/createpdf/adapter/ExtractImagesAdapter.java
+++ b/app/src/main/java/swati4star/createpdf/adapter/ExtractImagesAdapter.java
@@ -26,8 +26,8 @@ public class ExtractImagesAdapter extends RecyclerView.Adapter mFilePaths,
- OnFileItemClickedListener mOnClickListener) {
+ public ExtractImagesAdapter(@NonNull Activity mContext, @NonNull ArrayList mFilePaths,
+ @NonNull OnFileItemClickedListener mOnClickListener) {
this.mContext = mContext;
this.mFilePaths = mFilePaths;
this.mOnClickListener = mOnClickListener;
@@ -55,7 +55,7 @@ public int getItemCount() {
}
public interface OnFileItemClickedListener {
- void onFileItemClick(String path);
+ void onFileItemClick(@NonNull String path);
}
public class ViewMergeFilesHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
diff --git a/app/src/main/java/swati4star/createpdf/adapter/FAQAdapter.java b/app/src/main/java/swati4star/createpdf/adapter/FAQAdapter.java
index 4b866d719..0fe10780f 100644
--- a/app/src/main/java/swati4star/createpdf/adapter/FAQAdapter.java
+++ b/app/src/main/java/swati4star/createpdf/adapter/FAQAdapter.java
@@ -22,7 +22,7 @@ public class FAQAdapter extends RecyclerView.Adapter {
private final List mFaqs;
private final OnItemClickListener mOnItemClickListener;
- public FAQAdapter(List faqs, OnItemClickListener mOnItemClickListener) {
+ public FAQAdapter(@NonNull List faqs, @NonNull OnItemClickListener mOnItemClickListener) {
this.mFaqs = faqs;
this.mOnItemClickListener = mOnItemClickListener;
}
diff --git a/app/src/main/java/swati4star/createpdf/adapter/FilesListAdapter.java b/app/src/main/java/swati4star/createpdf/adapter/FilesListAdapter.java
index 3cfceee5a..22e728b71 100644
--- a/app/src/main/java/swati4star/createpdf/adapter/FilesListAdapter.java
+++ b/app/src/main/java/swati4star/createpdf/adapter/FilesListAdapter.java
@@ -23,8 +23,8 @@ public class FilesListAdapter extends RecyclerView.Adapter mFilePaths,
- OnFileItemClickedListener mOnClickListener) {
+ public FilesListAdapter(@NonNull Activity mContext, @NonNull ArrayList mFilePaths,
+ @NonNull OnFileItemClickedListener mOnClickListener) {
this.mContext = mContext;
this.mFilePaths = mFilePaths;
this.mOnClickListener = mOnClickListener;
@@ -50,7 +50,7 @@ public int getItemCount() {
}
public interface OnFileItemClickedListener {
- void onFileItemClick(String path);
+ void onFileItemClick(@NonNull String path);
}
public class ViewMergeFilesHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
diff --git a/app/src/main/java/swati4star/createpdf/adapter/HistoryAdapter.java b/app/src/main/java/swati4star/createpdf/adapter/HistoryAdapter.java
index ec2bb2d79..5053f9332 100644
--- a/app/src/main/java/swati4star/createpdf/adapter/HistoryAdapter.java
+++ b/app/src/main/java/swati4star/createpdf/adapter/HistoryAdapter.java
@@ -26,7 +26,7 @@ public class HistoryAdapter extends RecyclerView.Adapter mIconsOperationList;
- public HistoryAdapter(Activity mActivity, List mHistoryList, OnClickListener mOnClickListener) {
+ public HistoryAdapter(@NonNull Activity mActivity, @NonNull List mHistoryList, @NonNull OnClickListener mOnClickListener) {
this.mHistoryList = mHistoryList;
this.mActivity = mActivity;
this.mOnClickListener = mOnClickListener;
@@ -88,7 +88,7 @@ public int getItemCount() {
}
public interface OnClickListener {
- void onItemClick(String path);
+ void onItemClick(@NonNull String path);
}
public class ViewHistoryHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
diff --git a/app/src/main/java/swati4star/createpdf/adapter/ImageFiltersAdapter.java b/app/src/main/java/swati4star/createpdf/adapter/ImageFiltersAdapter.java
index f8fb58f0a..a6e38e352 100644
--- a/app/src/main/java/swati4star/createpdf/adapter/ImageFiltersAdapter.java
+++ b/app/src/main/java/swati4star/createpdf/adapter/ImageFiltersAdapter.java
@@ -27,8 +27,8 @@ public class ImageFiltersAdapter extends RecyclerView.Adapter filterItems, Context context,
- OnFilterItemClickedListener listener) {
+ public ImageFiltersAdapter(@NonNull ArrayList filterItems, @NonNull Context context,
+ @NonNull OnFilterItemClickedListener listener) {
mFilterItem = filterItems;
mContext = context;
mOnFilterItemClickedListener = listener;
diff --git a/app/src/main/java/swati4star/createpdf/adapter/MergeFilesAdapter.java b/app/src/main/java/swati4star/createpdf/adapter/MergeFilesAdapter.java
index 273539d8a..89e053716 100644
--- a/app/src/main/java/swati4star/createpdf/adapter/MergeFilesAdapter.java
+++ b/app/src/main/java/swati4star/createpdf/adapter/MergeFilesAdapter.java
@@ -28,8 +28,8 @@ public class MergeFilesAdapter extends RecyclerView.Adapter mFilePaths,
- boolean mIsMergeFragment, OnClickListener mOnClickListener) {
+ public MergeFilesAdapter(@NonNull Activity mContext, @NonNull ArrayList mFilePaths,
+ boolean mIsMergeFragment, @NonNull OnClickListener mOnClickListener) {
this.mContext = mContext;
this.mFilePaths = mFilePaths;
this.mOnClickListener = mOnClickListener;
@@ -59,7 +59,7 @@ public int getItemCount() {
}
public interface OnClickListener {
- void onItemClick(String path);
+ void onItemClick(@NonNull String path);
}
public class ViewMergeFilesHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
diff --git a/app/src/main/java/swati4star/createpdf/adapter/MergeSelectedFilesAdapter.java b/app/src/main/java/swati4star/createpdf/adapter/MergeSelectedFilesAdapter.java
index a8212bd98..03966a0a5 100644
--- a/app/src/main/java/swati4star/createpdf/adapter/MergeSelectedFilesAdapter.java
+++ b/app/src/main/java/swati4star/createpdf/adapter/MergeSelectedFilesAdapter.java
@@ -24,8 +24,8 @@ public class MergeSelectedFilesAdapter extends
private final Activity mContext;
private final OnFileItemClickListener mOnClickListener;
- public MergeSelectedFilesAdapter(Activity mContext, ArrayList mFilePaths,
- OnFileItemClickListener mOnClickListener) {
+ public MergeSelectedFilesAdapter(@NonNull Activity mContext, @NonNull ArrayList mFilePaths,
+ @NonNull OnFileItemClickListener mOnClickListener) {
this.mContext = mContext;
this.mFilePaths = mFilePaths;
this.mOnClickListener = mOnClickListener;
@@ -50,9 +50,9 @@ public int getItemCount() {
}
public interface OnFileItemClickListener {
- void viewFile(String path);
+ void viewFile(@NonNull String path);
- void removeFile(String path);
+ void removeFile(@NonNull String path);
void moveUp(int position);
diff --git a/app/src/main/java/swati4star/createpdf/adapter/PreviewAdapter.java b/app/src/main/java/swati4star/createpdf/adapter/PreviewAdapter.java
index 69051703c..0260e9648 100644
--- a/app/src/main/java/swati4star/createpdf/adapter/PreviewAdapter.java
+++ b/app/src/main/java/swati4star/createpdf/adapter/PreviewAdapter.java
@@ -23,7 +23,7 @@ public class PreviewAdapter extends PagerAdapter {
private final ArrayList mPreviewItems;
private final LayoutInflater mInflater;
- public PreviewAdapter(Context context, ArrayList previewItems) {
+ public PreviewAdapter(@NonNull Context context, @NonNull ArrayList previewItems) {
mContext = context;
mPreviewItems = previewItems;
mInflater = LayoutInflater.from(context);
@@ -59,13 +59,14 @@ public boolean isViewFromObject(@NonNull View view, @NonNull Object object) {
return view == object;
}
+ @NonNull
@Override
public CharSequence getPageTitle(int position) {
return String.format(mContext.getResources().getString(R.string.showing_image),
position + 1, mPreviewItems.size());
}
- public void setData(ArrayList images) {
+ public void setData(@NonNull ArrayList images) {
mPreviewItems.clear();
mPreviewItems.addAll(images);
}
diff --git a/app/src/main/java/swati4star/createpdf/adapter/PreviewImageOptionsAdapter.java b/app/src/main/java/swati4star/createpdf/adapter/PreviewImageOptionsAdapter.java
index 1619a3738..3407f4990 100644
--- a/app/src/main/java/swati4star/createpdf/adapter/PreviewImageOptionsAdapter.java
+++ b/app/src/main/java/swati4star/createpdf/adapter/PreviewImageOptionsAdapter.java
@@ -21,8 +21,8 @@ public class PreviewImageOptionsAdapter extends RecyclerView.Adapter optionItems, Context context) {
+ public PreviewImageOptionsAdapter(@NonNull OnItemClickListener onItemClickListener,
+ @NonNull ArrayList optionItems, @NonNull Context context) {
mOnItemClickListener = onItemClickListener;
mOptions = optionItems;
mContext = context;
diff --git a/app/src/main/java/swati4star/createpdf/adapter/RearrangeImagesAdapter.java b/app/src/main/java/swati4star/createpdf/adapter/RearrangeImagesAdapter.java
index 0d06eb509..2fe34ec02 100644
--- a/app/src/main/java/swati4star/createpdf/adapter/RearrangeImagesAdapter.java
+++ b/app/src/main/java/swati4star/createpdf/adapter/RearrangeImagesAdapter.java
@@ -26,8 +26,8 @@ public class RearrangeImagesAdapter extends RecyclerView.Adapter mImagesUri;
- public RearrangeImagesAdapter(OnClickListener onClickListener,
- ArrayList uris, Context context) {
+ public RearrangeImagesAdapter(@NonNull OnClickListener onClickListener,
+ @NonNull ArrayList uris, @NonNull Context context) {
mOnClickListener = onClickListener;
mImagesUri = uris;
mContext = context;
@@ -64,7 +64,7 @@ public int getItemCount() {
return mImagesUri.size();
}
- public void positionChanged(ArrayList images) {
+ public void positionChanged(@NonNull ArrayList images) {
mImagesUri = images;
notifyDataSetChanged();
}
diff --git a/app/src/main/java/swati4star/createpdf/adapter/RearrangePdfAdapter.java b/app/src/main/java/swati4star/createpdf/adapter/RearrangePdfAdapter.java
index f7e2329f4..82bed551f 100644
--- a/app/src/main/java/swati4star/createpdf/adapter/RearrangePdfAdapter.java
+++ b/app/src/main/java/swati4star/createpdf/adapter/RearrangePdfAdapter.java
@@ -24,8 +24,8 @@ public class RearrangePdfAdapter extends RecyclerView.Adapter mBitmaps;
- public RearrangePdfAdapter(OnClickListener onClickListener,
- ArrayList uris, Context context) {
+ public RearrangePdfAdapter(@NonNull OnClickListener onClickListener,
+ @NonNull ArrayList uris, @NonNull Context context) {
mOnClickListener = onClickListener;
mBitmaps = uris;
mContext = context;
@@ -61,7 +61,7 @@ public int getItemCount() {
return mBitmaps.size();
}
- public void positionChanged(ArrayList images) {
+ public void positionChanged(@NonNull ArrayList images) {
mBitmaps = images;
notifyDataSetChanged();
}
diff --git a/app/src/main/java/swati4star/createpdf/adapter/RecentListAdapter.java b/app/src/main/java/swati4star/createpdf/adapter/RecentListAdapter.java
index 9082da46e..bedf8105f 100644
--- a/app/src/main/java/swati4star/createpdf/adapter/RecentListAdapter.java
+++ b/app/src/main/java/swati4star/createpdf/adapter/RecentListAdapter.java
@@ -25,7 +25,7 @@ public class RecentListAdapter extends RecyclerView.Adapter mKeys;
private List