@Override protected void onResume() { super.onResume(); LogHelper.info("BookView", "onResume"); // this allows references to bookQuery on a resume to remain valid. // would have thought a managed query would do this automatically book.refresh(getContentResolver()); // update the disk usage, which may have changed... if (sectionsCursor != null) { // trigger the "current playing" to be updated... sectionsAdapter.notifyDataSetChanged(); calculateAndDisplayBookDurationAndSize(); } if (mBoundService != null) { setProgressUpdater(); } updatePlayButtonLabel(); updateDeleteButton((Button) findViewById(R.id.delete)); updateDownloadButton((Button) findViewById(R.id.download)); updateAddToLibraryButtonText((Button) findViewById(R.id.addToLibrary)); }
@Override public void notifyDataSetChanged() { reinit(null); super.notifyDataSetChanged(); }