Some changes
This commit is contained in:
parent
52f026aa75
commit
66a968c472
|
@ -138,8 +138,8 @@ dependencies {
|
|||
implementation "ch.acra:acra-notification:$acraVersion"
|
||||
implementation 'com.github.stom79:Android-WYSIWYG-Editor:3.2.1'
|
||||
implementation 'com.github.duanhong169:colorpicker:1.1.6'
|
||||
implementation 'com.github.penfeizhou.android.animation:apng:1.1.0'
|
||||
implementation 'com.github.penfeizhou.android.animation:gif:1.1.0'
|
||||
implementation 'com.github.penfeizhou.android.animation:apng:1.3.1'
|
||||
implementation 'com.github.penfeizhou.android.animation:gif:1.3.1'
|
||||
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
|
||||
implementation 'com.github.smarteist:autoimageslider:1.3.2'
|
||||
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.0'
|
||||
|
|
|
@ -63,7 +63,7 @@ public class BaseActivity extends CyaneaAppCompatActivity {
|
|||
.detectLeakedRegistrationObjects()
|
||||
.detectActivityLeaks()
|
||||
.penaltyLog()
|
||||
.penaltyDeath()
|
||||
// .penaltyDeath()
|
||||
.build());
|
||||
}
|
||||
canShowActionMode = true;
|
||||
|
|
|
@ -456,10 +456,10 @@ public class EditProfileActivity extends BaseActivity implements OnRetrieveAccou
|
|||
new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
GlideApp.get(getApplicationContext()).clearDiskCache();
|
||||
Glide.get(getApplicationContext()).clearDiskCache();
|
||||
}
|
||||
}).start();
|
||||
GlideApp.get(getApplicationContext()).clearMemory();
|
||||
Glide.get(getApplicationContext()).clearMemory();
|
||||
HashMap<String, String> newCustomFields = new HashMap<>();
|
||||
|
||||
String key1, key2, key3, key4, val1, val2, val3, val4;
|
||||
|
|
|
@ -911,13 +911,10 @@ public class HttpsConnection {
|
|||
// always check HTTP response code first
|
||||
if (responseCode == HttpURLConnection.HTTP_OK) {
|
||||
// opens input stream from the HTTP connection
|
||||
InputStream inputStream = httpsURLConnection.getInputStream();
|
||||
httpsURLConnection.getInputStream().close();
|
||||
return inputStream;
|
||||
return httpsURLConnection.getInputStream();
|
||||
}
|
||||
httpsURLConnection.getInputStream().close();
|
||||
} catch (IOException | NoSuchAlgorithmException | KeyManagementException ignored) {
|
||||
}
|
||||
} catch (IOException | NoSuchAlgorithmException | KeyManagementException ignored) {}
|
||||
if (httpsURLConnection != null)
|
||||
try {
|
||||
httpsURLConnection.getInputStream().close();
|
||||
|
|
|
@ -3507,7 +3507,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
imageView.setImageBitmap(null);
|
||||
if (!url.trim().contains("missing.png") && !((Activity) context).isFinishing()) {
|
||||
if (!blur) {
|
||||
GlideApp.with(imageView.getContext())
|
||||
Glide.with(imageView.getContext())
|
||||
.asBitmap()
|
||||
.load(!attachment.getType().toLowerCase().equals("audio") ? url : R.drawable.ic_audio_wave)
|
||||
.thumbnail(0.1f)
|
||||
|
@ -3531,7 +3531,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
}
|
||||
});
|
||||
} else {
|
||||
GlideApp.with(imageView.getContext())
|
||||
Glide.with(imageView.getContext())
|
||||
.asBitmap()
|
||||
.load(!attachment.getType().toLowerCase().equals("audio") ? url : R.drawable.ic_audio_wave)
|
||||
.thumbnail(0.1f)
|
||||
|
@ -3558,7 +3558,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
} else {
|
||||
if (!url.trim().contains("missing.png") && !((Activity) context).isFinishing()) {
|
||||
if (!blur) {
|
||||
GlideApp.with(imageView.getContext())
|
||||
Glide.with(imageView.getContext())
|
||||
.load(!attachment.getType().toLowerCase().equals("audio") ? url : R.drawable.ic_audio_wave)
|
||||
.thumbnail(0.1f)
|
||||
.override(640, 480)
|
||||
|
@ -3566,7 +3566,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
.transition(DrawableTransitionOptions.withCrossFade())
|
||||
.into(imageView);
|
||||
} else {
|
||||
GlideApp.with(imageView.getContext())
|
||||
Glide.with(imageView.getContext())
|
||||
.load(!attachment.getType().toLowerCase().equals("audio") ? url : R.drawable.ic_audio_wave)
|
||||
.thumbnail(0.1f)
|
||||
.override(640, 480)
|
||||
|
|
|
@ -72,7 +72,6 @@ import app.fedilab.android.client.Entities.RemoteInstance;
|
|||
import app.fedilab.android.client.Entities.RetrieveFeedsParam;
|
||||
import app.fedilab.android.client.Entities.Status;
|
||||
import app.fedilab.android.client.Entities.TagTimeline;
|
||||
import app.fedilab.android.client.Glide.GlideApp;
|
||||
import app.fedilab.android.drawers.ArtListAdapter;
|
||||
import app.fedilab.android.drawers.PeertubeAdapter;
|
||||
import app.fedilab.android.drawers.PixelfedListAdapter;
|
||||
|
@ -160,7 +159,7 @@ public class DisplayStatusFragment extends Fragment implements OnRetrieveFeedsIn
|
|||
@Nullable
|
||||
@Override
|
||||
public RequestBuilder<?> getPreloadRequestBuilder(@NonNull String url) {
|
||||
return GlideApp.with(context)
|
||||
return Glide.with(context)
|
||||
.load(url)
|
||||
.override(640, 480);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue