aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2022-11-28 12:31:23 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2022-11-28 12:31:23 +0000
commit4af9e3d1617845b4674dc2e52c467c4f811d9e1d (patch)
treeb97bdbf5fa0fd68350759e370cc8041098c4ab22 /app/src
parentb1280bfb36ad5ceba7102f10a80e4460b8aa87a5 (diff)
downloadinfinity-for-reddit-4af9e3d1617845b4674dc2e52c467c4f811d9e1d.tar
infinity-for-reddit-4af9e3d1617845b4674dc2e52c467c4f811d9e1d.tar.gz
infinity-for-reddit-4af9e3d1617845b4674dc2e52c467c4f811d9e1d.tar.bz2
infinity-for-reddit-4af9e3d1617845b4674dc2e52c467c4f811d9e1d.tar.lz
infinity-for-reddit-4af9e3d1617845b4674dc2e52c467c4f811d9e1d.tar.xz
infinity-for-reddit-4af9e3d1617845b4674dc2e52c467c4f811d9e1d.tar.zst
infinity-for-reddit-4af9e3d1617845b4674dc2e52c467c4f811d9e1d.zip
Minor bugs fixed.
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/AppComponent.java3
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/AppModule.java7
2 files changed, 4 insertions, 6 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/AppComponent.java b/app/src/main/java/ml/docilealligator/infinityforreddit/AppComponent.java
index 6afa21b9..8b8f5533 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/AppComponent.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/AppComponent.java
@@ -312,10 +312,9 @@ public interface AppComponent {
void inject(HistoryActivity historyActivity);
void inject(MorePostsInfoFragment morePostsInfoFragment);
-
+
@Component.Factory
interface Factory {
-
AppComponent create(@BindsInstance Application application);
}
}
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/AppModule.java b/app/src/main/java/ml/docilealligator/infinityforreddit/AppModule.java
index 88f83d6c..6fac70b3 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/AppModule.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/AppModule.java
@@ -4,6 +4,8 @@ import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
+import androidx.preference.PreferenceManager;
+
import com.google.android.exoplayer2.database.StandaloneDatabaseProvider;
import com.google.android.exoplayer2.upstream.cache.LeastRecentlyUsedCacheEvictor;
import com.google.android.exoplayer2.upstream.cache.SimpleCache;
@@ -15,14 +17,11 @@ import java.util.concurrent.Executors;
import javax.inject.Named;
import javax.inject.Singleton;
-import androidx.preference.PreferenceManager;
import dagger.Binds;
import dagger.Module;
import dagger.Provides;
import ml.docilealligator.infinityforreddit.customtheme.CustomThemeWrapper;
import ml.docilealligator.infinityforreddit.customviews.LoopAvailableExoCreator;
-import ml.docilealligator.infinityforreddit.network.SortTypeConverterFactory;
-import ml.docilealligator.infinityforreddit.utils.APIUtils;
import ml.docilealligator.infinityforreddit.utils.CustomThemeSharedPreferencesUtils;
import ml.docilealligator.infinityforreddit.utils.SharedPreferencesUtils;
import ml.docilealligator.infinityforreddit.videoautoplay.Config;
@@ -39,7 +38,7 @@ abstract class AppModule {
@Provides
@Singleton
static RedditDataRoomDatabase provideRedditDataRoomDatabase(Application application) {
- return RedditDataRoomDatabase.getDatabase(application);
+ return RedditDataRoomDatabase.create(application);
}
@Provides