Browse Source

fix favourites overwrite more

renovate/org.robolectric-robolectric-4.x v19.0.3
Austin Huang 4 years ago
parent
commit
40da4baf01
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 2
      app/src/main/java/awais/instagrabber/db/AppDatabase.java
  2. 2
      app/src/main/java/awais/instagrabber/utils/ExportImportUtils.java

2
app/src/main/java/awais/instagrabber/db/AppDatabase.java

@ -161,7 +161,7 @@ public abstract class AppDatabase extends RoomDatabase {
final FavoriteType type = favoriteTypeQueryPair.first; final FavoriteType type = favoriteTypeQueryPair.first;
final String query = favoriteTypeQueryPair.second; final String query = favoriteTypeQueryPair.second;
oldModels.add(new Favorite( oldModels.add(new Favorite(
-1,
0,
query, query,
type, type,
queryDisplayExists ? cursor.getString(cursor.getColumnIndex("query_display")) queryDisplayExists ? cursor.getString(cursor.getColumnIndex("query_display"))

2
app/src/main/java/awais/instagrabber/utils/ExportImportUtils.java

@ -152,7 +152,7 @@ public final class ExportImportUtils {
continue; continue;
} }
final Favorite favorite = new Favorite( final Favorite favorite = new Favorite(
-1,
0,
query, query,
favoriteType, favoriteType,
favsObject.optString("s"), favsObject.optString("s"),

Loading…
Cancel
Save