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

#1185 add arabic translation #1186

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Second push to use with(context) syntax
32299223 committed Oct 13, 2024
commit c33131e93353a440c7f7474c340caf4526a5eafa
7 changes: 6 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
@@ -54,6 +54,11 @@ configurations {
exclude module: 'httpclient'
}
}
configurations.configureEach {
resolutionStrategy {
force 'com.squareup.picasso:picasso:2.5.2'
}
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
@@ -122,7 +127,7 @@ dependencies {
implementation 'com.eftimoff:android-viewpager-transformers:1.0.1@aar'

// Image picker, and folder picker
implementation 'com.github.zhihu:matisse:0.5.3-beta3'
implementation 'com.github.zhihu:Matisse:v0.5.3-beta3'
implementation 'lib.kashif:folderpicker:2.4'

// Zxing - for scanning qr code
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ public Object instantiateItem(@NonNull ViewGroup view, int position) {
final ImageView imageView = layout.findViewById(R.id.image);
String path = mPreviewItems.get(position);
File fileLocation = new File(path);
Picasso.get().load(fileLocation).into(imageView);
Picasso.with(mContext).load(fileLocation).into(imageView);
TextView fileName = layout.findViewById(R.id.tvFileName);
String fileNameString = fileLocation.getName();
fileName.setText(fileNameString);
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ public void onBindViewHolder(@NonNull RearrangeImagesAdapter.ViewHolder holder,
} else {
holder.buttonDown.setVisibility(View.VISIBLE);
}
Picasso.get().load(imageFile).into(holder.imageView);
Picasso.with(mContext).load(imageFile).into(holder.imageView);
holder.pageNumber.setText(String.valueOf(position + 1));
}