Skip to content

Commit

Permalink
remove Picasso for image loading since we can just use Fresco
Browse files Browse the repository at this point in the history
  • Loading branch information
n8fr8 committed Jul 16, 2018
1 parent e2ca365 commit 29da0f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ dependencies {
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.github.guardianproject:signal-cli-android:-SNAPSHOT'
implementation 'com.github.satyan:sugar:1.5'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'net.the4thdimension:audio-wife:1.0.3'
implementation 'com.github.apl-devs:appintro:v4.2.3'
implementation 'info.guardianproject.netcipher:netcipher:2.0.0-alpha1'
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/org/havenapp/main/ui/EventTriggerAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.github.derlio.waveform.SimpleWaveformView;
import com.github.derlio.waveform.soundfile.SoundFile;
import com.squareup.picasso.Picasso;
import com.stfalcon.frescoimageviewer.ImageViewer;

import org.havenapp.main.R;
Expand Down Expand Up @@ -118,7 +117,9 @@ public boolean onLongClick(View view) {
context,
AUTHORITY,
new File(eventTrigger.getPath()));
Picasso.get().load(fileUri).into(holder.image);
//Picasso.get().load(fileUri).into(holder.image);
holder.image.setImageURI(fileUri);

holder.image.setOnClickListener(view -> {

int startPosition = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/main/res/layout/item_event.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
android:layout_height="wrap_content"
tools:text="Title" />

<ImageView
<com.facebook.drawee.view.SimpleDraweeView
android:layout_width="match_parent"
android:layout_height="200dp"
android:id="@+id/event_item_image"
Expand Down

0 comments on commit 29da0f7

Please sign in to comment.