Change summary
src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java | 13
1 file changed, 7 insertions(+), 6 deletions(-)
Detailed changes
@@ -499,12 +499,6 @@ public class StartConversationActivity extends XmppActivity
super.onStart();
mConferenceAdapter.refreshSettings();
mContactsAdapter.refreshSettings();
- if (!createdByViewIntent) {
- if (askForContactsPermissions()) {
- return;
- }
- requestNotificationPermissionIfNeeded();
- }
}
private void requestNotificationPermissionIfNeeded() {
@@ -1204,6 +1198,13 @@ public class StartConversationActivity extends XmppActivity
&& mOpenedFab.compareAndSet(false, true)) {
binding.speedDial.open();
}
+
+ if (!createdByViewIntent) {
+ if (askForContactsPermissions()) {
+ return;
+ }
+ requestNotificationPermissionIfNeeded();
+ }
}
protected boolean processViewIntent(@NonNull Intent intent) {