aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/SubscribedSubredditDatabase
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-02-21 09:24:23 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-02-21 09:24:23 +0000
commit82d97cf73208f3f187b965fca4460f68af33f6b7 (patch)
tree76da6482a83ebc3d09b6a8f0353d057f200ddfde /app/src/main/java/SubscribedSubredditDatabase
parent2b0228ab476426531f0f064e80e3cf2019081569 (diff)
downloadinfinity-for-reddit-82d97cf73208f3f187b965fca4460f68af33f6b7.tar
infinity-for-reddit-82d97cf73208f3f187b965fca4460f68af33f6b7.tar.gz
infinity-for-reddit-82d97cf73208f3f187b965fca4460f68af33f6b7.tar.bz2
infinity-for-reddit-82d97cf73208f3f187b965fca4460f68af33f6b7.tar.lz
infinity-for-reddit-82d97cf73208f3f187b965fca4460f68af33f6b7.tar.xz
infinity-for-reddit-82d97cf73208f3f187b965fca4460f68af33f6b7.tar.zst
infinity-for-reddit-82d97cf73208f3f187b965fca4460f68af33f6b7.zip
Migrate to AndroidX
Diffstat (limited to 'app/src/main/java/SubscribedSubredditDatabase')
-rw-r--r--app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditDao.java10
-rw-r--r--app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditData.java8
-rw-r--r--app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditRepository.java2
-rw-r--r--app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditRoomDatabase.java6
-rw-r--r--app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditViewModel.java4
5 files changed, 15 insertions, 15 deletions
diff --git a/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditDao.java b/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditDao.java
index 35ceac47..3a5aa9be 100644
--- a/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditDao.java
+++ b/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditDao.java
@@ -1,10 +1,10 @@
package SubscribedSubredditDatabase;
-import android.arch.lifecycle.LiveData;
-import android.arch.persistence.room.Dao;
-import android.arch.persistence.room.Insert;
-import android.arch.persistence.room.OnConflictStrategy;
-import android.arch.persistence.room.Query;
+import androidx.lifecycle.LiveData;
+import androidx.room.Dao;
+import androidx.room.Insert;
+import androidx.room.OnConflictStrategy;
+import androidx.room.Query;
import java.util.List;
diff --git a/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditData.java b/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditData.java
index c6812768..4c6f1a49 100644
--- a/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditData.java
+++ b/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditData.java
@@ -1,9 +1,9 @@
package SubscribedSubredditDatabase;
-import android.arch.persistence.room.ColumnInfo;
-import android.arch.persistence.room.Entity;
-import android.arch.persistence.room.PrimaryKey;
-import android.support.annotation.NonNull;
+import androidx.room.ColumnInfo;
+import androidx.room.Entity;
+import androidx.room.PrimaryKey;
+import androidx.annotation.NonNull;
@Entity(tableName = "subscribed_subreddits")
public class SubscribedSubredditData {
diff --git a/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditRepository.java b/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditRepository.java
index 54b2ddfa..02bb7881 100644
--- a/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditRepository.java
+++ b/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditRepository.java
@@ -1,7 +1,7 @@
package SubscribedSubredditDatabase;
import android.app.Application;
-import android.arch.lifecycle.LiveData;
+import androidx.lifecycle.LiveData;
import android.os.AsyncTask;
import java.util.List;
diff --git a/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditRoomDatabase.java b/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditRoomDatabase.java
index abde79b4..48602fcc 100644
--- a/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditRoomDatabase.java
+++ b/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditRoomDatabase.java
@@ -1,8 +1,8 @@
package SubscribedSubredditDatabase;
-import android.arch.persistence.room.Database;
-import android.arch.persistence.room.Room;
-import android.arch.persistence.room.RoomDatabase;
+import androidx.room.Database;
+import androidx.room.Room;
+import androidx.room.RoomDatabase;
import android.content.Context;
@Database(entities = {SubscribedSubredditData.class}, version = 1)
diff --git a/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditViewModel.java b/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditViewModel.java
index 8598dd55..9ed8ac93 100644
--- a/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditViewModel.java
+++ b/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditViewModel.java
@@ -1,8 +1,8 @@
package SubscribedSubredditDatabase;
import android.app.Application;
-import android.arch.lifecycle.AndroidViewModel;
-import android.arch.lifecycle.LiveData;
+import androidx.lifecycle.AndroidViewModel;
+import androidx.lifecycle.LiveData;
import java.util.List;