Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
PruthiviRaj27 committed Dec 9, 2022
1 parent f47efb4 commit 3f922bc
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import android.content.Context;
import android.os.Bundle;
import android.util.Log;

import androidx.fragment.app.FragmentActivity;
import androidx.loader.content.Loader;

Expand Down Expand Up @@ -109,9 +107,9 @@ public void onLoadFinished(Loader<List<Product>> loader, List<Product> products)
getLoaderManager().destroyLoader(loader.getId());

} else {
deleteAndInsertProductsInDB(products);
this.items = products;
getListAdapter().getWrappedAdapter().setItems(products);
deleteAndInsertProductsInDB(products);
showList();
getListAdapter().notifyDataSetChanged();
}
Expand Down

0 comments on commit 3f922bc

Please sign in to comment.