mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Fix possible NPEs with megaphone container.
This commit is contained in:
committed by
Nicholas Tinsley
parent
92339dfdcf
commit
b4fd57d900
@@ -1324,7 +1324,7 @@ public class ConversationListFragment extends MainFragment implements ActionMode
|
||||
if (cameraFab != null) {
|
||||
ViewUtil.fadeOut(cameraFab, fadeDuration);
|
||||
}
|
||||
if (megaphoneContainer.resolved()) {
|
||||
if (megaphoneContainer != null && megaphoneContainer.resolved()) {
|
||||
ViewUtil.fadeOut(megaphoneContainer.get(), fadeDuration);
|
||||
}
|
||||
}
|
||||
@@ -1336,7 +1336,7 @@ public class ConversationListFragment extends MainFragment implements ActionMode
|
||||
if (cameraFab != null) {
|
||||
ViewUtil.fadeIn(cameraFab, fadeDuration);
|
||||
}
|
||||
if (megaphoneContainer.resolved()) {
|
||||
if (megaphoneContainer != null && megaphoneContainer.resolved()) {
|
||||
ViewUtil.fadeIn(megaphoneContainer.get(), fadeDuration);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user