diff --git a/app/src/main/java/com/keylesspalace/tusky/SavedTootActivity.java b/app/src/main/java/com/keylesspalace/tusky/SavedTootActivity.java index d5551bf3..3e83074a 100644 --- a/app/src/main/java/com/keylesspalace/tusky/SavedTootActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/SavedTootActivity.java @@ -131,10 +131,12 @@ public class SavedTootActivity extends BaseActivity implements SavedTootAdapter. // Delete any media files associated with the status. ArrayList uris = new Gson().fromJson(item.getUrls(), new TypeToken>() {}.getType()); - for (String uriString : uris) { - Uri uri = Uri.parse(uriString); - if (getContentResolver().delete(uri, null, null) == 0) { - Log.e(TAG, String.format("Did not delete file %s.", uriString)); + if (uris != null) { + for (String uriString : uris) { + Uri uri = Uri.parse(uriString); + if (getContentResolver().delete(uri, null, null) == 0) { + Log.e(TAG, String.format("Did not delete file %s.", uriString)); + } } } // update DB diff --git a/app/src/main/res/color/drawer_visibility_panel_item.xml b/app/src/main/res/color/drawer_visibility_panel_item.xml deleted file mode 100644 index 9849dfa9..00000000 --- a/app/src/main/res/color/drawer_visibility_panel_item.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_mute_24dp.xml b/app/src/main/res/drawable/ic_mute_24dp.xml index 801dc934..bcdbb5a6 100644 --- a/app/src/main/res/drawable/ic_mute_24dp.xml +++ b/app/src/main/res/drawable/ic_mute_24dp.xml @@ -1,5 +1,6 @@ + android:viewportWidth="35.43307" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android" + android:autoMirrored="true"> + android:viewportWidth="35.43307" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android" + android:autoMirrored="true"> - + + + android:layout_height="wrap_content" + app:layout_behavior="@string/appbar_scrolling_view_behavior"> - + android:layout_height="wrap_content" + android:orientation="vertical" + android:gravity="center" + android:paddingTop="16dp" + android:paddingBottom="16dp"> - + - + android:paddingTop="8dp" + android:textIsSelectable="true" + android:textAppearance="@style/TextAppearance.AppCompat.Large" /> - + - + - +