lets just catch all exceptions thrown at storing folders json

This commit is contained in:
tibbi 2018-02-08 18:01:30 +01:00
parent db96efac38
commit 4809f54bae
3 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ ext {
} }
dependencies { dependencies {
implementation 'com.simplemobiletools:commons:3.10.0' implementation 'com.simplemobiletools:commons:3.11.0'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0' implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
implementation 'com.android.support:multidex:1.0.2' implementation 'com.android.support:multidex:1.0.2'
implementation 'com.google.code.gson:gson:2.8.2' implementation 'com.google.code.gson:gson:2.8.2'

View file

@ -656,6 +656,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
val subList = mMedia.subList(0, Math.min(SAVE_MEDIA_CNT, mMedia.size)) val subList = mMedia.subList(0, Math.min(SAVE_MEDIA_CNT, mMedia.size))
val json = Gson().toJson(subList) val json = Gson().toJson(subList)
config.saveFolderMedia(mPath, json) config.saveFolderMedia(mPath, json)
} catch (ignored: Exception) {
} catch (ignored: OutOfMemoryError) { } catch (ignored: OutOfMemoryError) {
} }
}.start() }.start()

View file

@ -50,7 +50,6 @@
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/settings_avoid_whats_new_holder" android:id="@+id/settings_avoid_whats_new_holder"
android:layout_width="match_parent" android:layout_width="match_parent"