diff --git a/app/app/src/main/AndroidManifest.xml b/app/app/src/main/AndroidManifest.xml index 41581fd..62528f2 100644 --- a/app/app/src/main/AndroidManifest.xml +++ b/app/app/src/main/AndroidManifest.xml @@ -96,43 +96,6 @@ android:name="activity.reading.StoryReadingActivity" android:configChanges="orientation|keyboard|keyboardHidden|screenSize|screenLayout|uiMode" android:theme="@style/MainTheme" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (){ @Override protected Void doInBackground(Void... params) { + final Version version = model.getVersion(); UWPreferenceDataManager.willDeleteVersion(getContext(), version); version.deleteContent(getContext()); + refreshData(); return null; } @@ -487,14 +488,16 @@ protected void onPostExecute(Void aVoid) { }.execute(); } - private void deleteAudio(VersionViewModel model){ + private void deleteAudio(final VersionViewModel model){ + - final Version version = model.getVersion(); new AsyncTask(){ @Override protected Void doInBackground(Void... params) { + Version version = model.getVersion(); version.deleteAudio(getContext()); + refreshData(); return null; } @@ -510,6 +513,11 @@ private void deleteVideo(VersionViewModel model){ } + private void refreshData() { + BiblePagingEvent.refreshPagingEvent(getApplicationContext()); + StoriesPagingEvent.refreshPagingEvent(getApplicationContext()); + } + @Override public void resourceChosen(VersionViewModel.ResourceViewModel viewModel, Version version) {