aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app/build.gradle24
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/adapters/FollowedUsersRecyclerViewAdapter.java5
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/adapters/MultiRedditListingRecyclerViewAdapter.java3
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/adapters/SubscribedSubredditsRecyclerViewAdapter.java2
4 files changed, 18 insertions, 16 deletions
diff --git a/app/build.gradle b/app/build.gradle
index becaeb62..8d094fd7 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -84,26 +84,26 @@ dependencies {
implementation 'com.google.android.material:material:1.12.0'
/** ExoPlayer **/
- def exoplayerVersion = "2.19.1"
- implementation "androidx.media3:media3-exoplayer:1.1.1"
- implementation "androidx.media3:media3-exoplayer-dash:1.1.1"
- implementation "androidx.media3:media3-exoplayer-hls:1.1.1"
- implementation "androidx.media3:media3-ui:1.1.1"
- implementation "androidx.media3:media3-exoplayer-smoothstreaming:1.1.1"
+ def media3_version = "1.3.1"
+ implementation "androidx.media3:media3-exoplayer:$media3_version"
+ implementation "androidx.media3:media3-exoplayer-dash:$media3_version"
+ implementation "androidx.media3:media3-exoplayer-hls:$media3_version"
+ implementation "androidx.media3:media3-ui:$media3_version"
+ implementation "androidx.media3:media3-exoplayer-smoothstreaming:$media3_version"
/** Third-party **/
/**** Backend logic ****/
// HTTP clients
- def retrofitVersion = "2.9.0"
+ def retrofitVersion = '2.11.0'
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
implementation "com.squareup.retrofit2:converter-scalars:$retrofitVersion"
implementation "com.squareup.retrofit2:adapter-guava:$retrofitVersion"
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
// Dependency injection
- def daggerVersion = '2.40.5'
+ def daggerVersion = '2.51.1'
implementation "com.google.dagger:dagger:$daggerVersion"
annotationProcessor "com.google.dagger:dagger-compiler:$daggerVersion"
@@ -129,10 +129,10 @@ dependencies {
implementation 'com.google.code.gson:gson:2.10.1'
// Java library for zip files and streams
- implementation 'net.lingala.zip4j:zip4j:2.11.2'
+ implementation 'net.lingala.zip4j:zip4j:2.11.5'
// IO functionality
- implementation 'commons-io:commons-io:2.13.0'
+ implementation 'commons-io:commons-io:2.16.1'
// Crash reporting
implementation 'com.github.FunkyMuse:Crashy:1.2.0'
@@ -165,7 +165,7 @@ dependencies {
implementation 'me.saket:better-link-movement-method:2.2.0'
// Animations
- implementation 'com.airbnb.android:lottie:4.2.2'
+ implementation 'com.airbnb.android:lottie:6.4.0'
// Loading ProgressBar
implementation 'com.lsjwzh:materialloadingprogressbar:0.5.8-RELEASE'
@@ -183,7 +183,7 @@ dependencies {
implementation 'com.nex3z:flow-layout:1.3.3'
// RecyclerView fast scrolling
- implementation 'me.zhanghai.android.fastscroll:library:1.1.8'
+ implementation 'me.zhanghai.android.fastscroll:library:1.3.0'
implementation 'com.otaliastudios:zoomlayout:1.9.0'
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/FollowedUsersRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/FollowedUsersRecyclerViewAdapter.java
index 430371b4..008944e2 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/FollowedUsersRecyclerViewAdapter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/FollowedUsersRecyclerViewAdapter.java
@@ -3,6 +3,7 @@ package ml.docilealligator.infinityforreddit.adapters;
import android.content.Intent;
import android.os.Handler;
import android.view.LayoutInflater;
+import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
@@ -177,10 +178,10 @@ public class FollowedUsersRecyclerViewAdapter extends RecyclerView.Adapter<Recyc
@NonNull
@Override
- public String getPopupText(int position) {
+ public CharSequence getPopupText(@NonNull View view, int position) {
switch (getItemViewType(position)) {
case VIEW_TYPE_USER:
- int offset = (mFavoriteSubscribedUserData != null && mFavoriteSubscribedUserData.size() > 0) ?
+ int offset = (mFavoriteSubscribedUserData != null && !mFavoriteSubscribedUserData.isEmpty()) ?
mFavoriteSubscribedUserData.size() + 2 : 0;
return mSubscribedUserData.get(position - offset).getName().substring(0, 1).toUpperCase();
case VIEW_TYPE_FAVORITE_USER:
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/MultiRedditListingRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/MultiRedditListingRecyclerViewAdapter.java
index 38d0a938..06da34f8 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/MultiRedditListingRecyclerViewAdapter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/MultiRedditListingRecyclerViewAdapter.java
@@ -2,6 +2,7 @@ package ml.docilealligator.infinityforreddit.adapters;
import android.os.Handler;
import android.view.LayoutInflater;
+import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
@@ -354,7 +355,7 @@ public class MultiRedditListingRecyclerViewAdapter extends RecyclerView.Adapter<
@NonNull
@Override
- public String getPopupText(int position) {
+ public String getPopupText(@NonNull View view, int position) {
switch (getItemViewType(position)) {
case VIEW_TYPE_MULTI_REDDIT:
int offset = (mFavoriteMultiReddits != null && mFavoriteMultiReddits.size() > 0) ?
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/SubscribedSubredditsRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/SubscribedSubredditsRecyclerViewAdapter.java
index 9b59fcf6..93ad1ca5 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/SubscribedSubredditsRecyclerViewAdapter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/SubscribedSubredditsRecyclerViewAdapter.java
@@ -425,7 +425,7 @@ public class SubscribedSubredditsRecyclerViewAdapter extends RecyclerView.Adapte
@NonNull
@Override
- public String getPopupText(int position) {
+ public CharSequence getPopupText(@NonNull View view, int position) {
switch (getItemViewType(position)) {
case VIEW_TYPE_SUBREDDIT:
if (hasClearSelectionRow && position == 0) {