mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-21 02:08:40 +00:00
Add a gradient and background to the onboarding megaphone.
This commit is contained in:
committed by
Alan Evans
parent
5d515198e6
commit
e6dfe96569
@@ -81,7 +81,7 @@ public class ConversationListArchiveFragment extends ConversationListFragment im
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPostSubmitList() {
|
||||
protected void onPostSubmitList(int conversationCount) {
|
||||
list.setVisibility(View.VISIBLE);
|
||||
|
||||
if (emptyState.resolved()) {
|
||||
@@ -148,6 +148,11 @@ public class ConversationListArchiveFragment extends ConversationListFragment im
|
||||
}
|
||||
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, threadId);
|
||||
}
|
||||
|
||||
@Override
|
||||
void updateEmptyState(boolean isConversationEmpty) {
|
||||
// Do nothing
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -832,10 +832,10 @@ public class ConversationListFragment extends MainFragment implements ActionMode
|
||||
|
||||
private void onSubmitList(@NonNull List<Conversation> conversationList) {
|
||||
defaultAdapter.submitList(conversationList);
|
||||
onPostSubmitList();
|
||||
onPostSubmitList(conversationList.size());
|
||||
}
|
||||
|
||||
private void updateEmptyState(boolean isConversationEmpty) {
|
||||
void updateEmptyState(boolean isConversationEmpty) {
|
||||
if (isConversationEmpty) {
|
||||
Log.i(TAG, "Received an empty data set.");
|
||||
list.setVisibility(View.INVISIBLE);
|
||||
@@ -856,7 +856,11 @@ public class ConversationListFragment extends MainFragment implements ActionMode
|
||||
}
|
||||
}
|
||||
|
||||
protected void onPostSubmitList() {
|
||||
protected void onPostSubmitList(int conversationCount) {
|
||||
if (conversationCount >= 6 && (SignalStore.onboarding().shouldShowInviteFriends() || SignalStore.onboarding().shouldShowNewGroup())) {
|
||||
SignalStore.onboarding().clearAll();
|
||||
ApplicationDependencies.getMegaphoneRepository().markFinished(Megaphones.Event.ONBOARDING);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user