Haven is for people who need a way to protect their personal spaces and possessions without compromising their own privacy, through an Android app and on-device sensors
insert new event into the top of the list
n8fr831337630023a
diff --git a/src/main/java/info/guardianproject/phoneypot/ListActivity.java b/src/main/java/info/guardianproject/phoneypot/ListActivity.javaindex 34d7c07..e3ce93c 100644--- a/src/main/java/info/guardianproject/phoneypot/ListActivity.java+++ b/src/main/java/info/guardianproject/phoneypot/ListActivity.java@@ -235,9 +235,10 @@ public class ListActivity extends AppCompatActivity {// Just load the last added note (new)Event event = Event.last(Event.class);- events.add(event);- adapter.notifyItemInserted((int) newCount);-+ events.add(0,event);+ adapter.notifyItemInserted(0);+ adapter.notifyDataSetChanged();+initialCount = newCount;recyclerView.setVisibility(View.VISIBLE);