mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
move maybeAskDirectly() to the updateReminders()-AsyncTask, this avoids the keyboard not being closed during the permission-quesions
This commit is contained in:
@@ -160,7 +160,6 @@ public class ConversationListFragment extends Fragment
|
||||
super.onResume();
|
||||
|
||||
updateReminders();
|
||||
DozeReminder.maybeAskDirectly(getActivity());
|
||||
list.getAdapter().notifyDataSetChanged();
|
||||
}
|
||||
|
||||
@@ -239,6 +238,7 @@ public class ConversationListFragment extends Fragment
|
||||
|
||||
@Override
|
||||
protected void onPostExecute(Optional<? extends Reminder> reminder) {
|
||||
DozeReminder.maybeAskDirectly(getActivity());
|
||||
if (reminder.isPresent() && getActivity() != null && !isRemoving()) {
|
||||
reminderView.showReminder(reminder.get());
|
||||
} else if (!reminder.isPresent()) {
|
||||
|
||||
Reference in New Issue
Block a user