-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathImported_the_ent.patch
61 lines (52 loc) · 2.16 KB
/
Imported_the_ent.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Index: app/src/main/java/com/codepath/apps/restclienttemplate/models/Tweet.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- app/src/main/java/com/codepath/apps/restclienttemplate/models/Tweet.java (revision 0bc17eb5eda6fa0d9f47cf5363f5272f87b89ec2)
+++ app/src/main/java/com/codepath/apps/restclienttemplate/models/Tweet.java (date 1593438368000)
@@ -2,6 +2,9 @@
import android.text.format.DateUtils;
+import androidx.recyclerview.widget.RecyclerView;
+import androidx.room.Entity;
+
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
@@ -14,6 +17,7 @@
import java.util.Locale;
@Parcel
+@Entity
public class Tweet {
public String body;
Index: app/src/main/java/com/codepath/apps/restclienttemplate/models/User.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- app/src/main/java/com/codepath/apps/restclienttemplate/models/User.java (revision 0bc17eb5eda6fa0d9f47cf5363f5272f87b89ec2)
+++ app/src/main/java/com/codepath/apps/restclienttemplate/models/User.java (date 1593438368000)
@@ -1,10 +1,13 @@
package com.codepath.apps.restclienttemplate.models;
+import androidx.room.Entity;
+
import org.json.JSONException;
import org.json.JSONObject;
import org.parceler.Parcel;
@Parcel
+@Entity
public class User {
public String name;
Index: app/src/main/java/com/codepath/apps/restclienttemplate/TimelineActivity.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- app/src/main/java/com/codepath/apps/restclienttemplate/TimelineActivity.java (revision 0bc17eb5eda6fa0d9f47cf5363f5272f87b89ec2)
+++ app/src/main/java/com/codepath/apps/restclienttemplate/TimelineActivity.java (date 1593383832000)
@@ -127,6 +127,7 @@
tweets.add(0, recentTweet);
// then notify adapter
adapter.notifyItemInserted(0);
+ rvTweets.smoothScrollToPosition(0);
}