From 8f226b024c53294a6f951cee79d35adb14cecad2 Mon Sep 17 00:00:00 2001 From: Vavassor Date: Sun, 16 Jul 2017 19:56:26 -0400 Subject: [PATCH] Fixes notifications not setting their visibility. --- .../com/keylesspalace/tusky/adapter/NotificationsAdapter.java | 1 - .../main/java/com/keylesspalace/tusky/util/ViewDataUtils.java | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java b/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java index 65706978..934a2e40 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java @@ -38,7 +38,6 @@ import com.keylesspalace.tusky.view.RoundedTransformation; import com.keylesspalace.tusky.viewdata.NotificationViewData; import com.keylesspalace.tusky.viewdata.StatusViewData; import com.squareup.picasso.Picasso; -import com.varunest.sparkbutton.helpers.Utils; import java.util.ArrayList; import java.util.List; diff --git a/app/src/main/java/com/keylesspalace/tusky/util/ViewDataUtils.java b/app/src/main/java/com/keylesspalace/tusky/util/ViewDataUtils.java index 5801dedf..7b9c0f7b 100644 --- a/app/src/main/java/com/keylesspalace/tusky/util/ViewDataUtils.java +++ b/app/src/main/java/com/keylesspalace/tusky/util/ViewDataUtils.java @@ -37,6 +37,7 @@ public final class ViewDataUtils { .setSpoilerText(visibleStatus.spoilerText) .setRebloggedByUsername(status.reblog == null ? null : status.account.username) .setUserFullName(visibleStatus.account.getDisplayName()) + .setVisibility(visibleStatus.visibility) .setSenderId(visibleStatus.account.id) .setRebloggingEnabled(visibleStatus.rebloggingAllowed()) .createStatusViewData();