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