From a07aace5a6de50cc5431806359ae93cd0c168414 Mon Sep 17 00:00:00 2001 From: Doilio Matsinhe <38020305+doilio@users.noreply.github.com> Date: Mon, 4 Feb 2019 20:30:57 +0200 Subject: [PATCH] Update MainActivity.java Update so that you could see the changes happening in the recycleView at Real time, without the need no exit and open the app or rotate the screen. --- app/src/main/java/android/example/com/squawker/MainActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/android/example/com/squawker/MainActivity.java b/app/src/main/java/android/example/com/squawker/MainActivity.java index afe130d3..e14ffa34 100644 --- a/app/src/main/java/android/example/com/squawker/MainActivity.java +++ b/app/src/main/java/android/example/com/squawker/MainActivity.java @@ -132,6 +132,7 @@ public Loader onCreateLoader(int id, Bundle args) { @Override public void onLoadFinished(Loader loader, Cursor data) { mAdapter.swapCursor(data); + mAdapter.notifyDataSetChanged(); } @Override