Skip to content

Commit d4226fc

Browse files
anhanh11001nikit19
authored andcommitted
Fix: Hide notification Icon when user is not logged in (#2276)
Fixes: #2274
1 parent b747e12 commit d4226fc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/src/main/java/org/fossasia/openevent/general/event/EventsFragment.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ class EventsFragment : Fragment(), BottomIconDoubleClick {
141141
rootView.longSnackbar(it)
142142
})
143143

144+
rootView.notification.isVisible = eventsViewModel.isLoggedIn()
145+
rootView.notificationToolbar.isVisible = eventsViewModel.isLoggedIn()
146+
rootView.newNotificationDot.isVisible = eventsViewModel.isLoggedIn()
147+
rootView.newNotificationDotToolbar.isVisible = eventsViewModel.isLoggedIn()
148+
144149
eventsViewModel.loadLocation()
145150
if (rootView.locationTextView.text == getString(R.string.enter_location)) {
146151
rootView.emptyEventsText.text = getString(R.string.choose_preferred_location_message)

0 commit comments

Comments
 (0)