mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-19 18:55:05 +01:00
moved execution of setUpPushTokenRegistration
so token is registered everytime the conversation list is opened. In NextcloudTalkApplication it was not executed when app was still in background when opening Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
f582525fef
commit
9b55467af3
@ -167,8 +167,6 @@ class NextcloudTalkApplication : MultiDexApplication(), LifecycleObserver {
|
|||||||
ClosedInterfaceImpl().providerInstallerInstallIfNeededAsync()
|
ClosedInterfaceImpl().providerInstallerInstallIfNeededAsync()
|
||||||
DeviceUtils.ignoreSpecialBatteryFeatures()
|
DeviceUtils.ignoreSpecialBatteryFeatures()
|
||||||
|
|
||||||
ClosedInterfaceImpl().setUpPushTokenRegistration()
|
|
||||||
|
|
||||||
val accountRemovalWork = OneTimeWorkRequest.Builder(AccountRemovalWorker::class.java).build()
|
val accountRemovalWork = OneTimeWorkRequest.Builder(AccountRemovalWorker::class.java).build()
|
||||||
val periodicCapabilitiesUpdateWork = PeriodicWorkRequest.Builder(
|
val periodicCapabilitiesUpdateWork = PeriodicWorkRequest.Builder(
|
||||||
CapabilitiesWorker::class.java,
|
CapabilitiesWorker::class.java,
|
||||||
|
@ -85,6 +85,7 @@ import com.nextcloud.talk.models.json.conversations.Conversation;
|
|||||||
import com.nextcloud.talk.models.json.participants.Participant;
|
import com.nextcloud.talk.models.json.participants.Participant;
|
||||||
import com.nextcloud.talk.ui.dialog.ChooseAccountDialogFragment;
|
import com.nextcloud.talk.ui.dialog.ChooseAccountDialogFragment;
|
||||||
import com.nextcloud.talk.utils.ApiUtils;
|
import com.nextcloud.talk.utils.ApiUtils;
|
||||||
|
import com.nextcloud.talk.utils.ClosedInterfaceImpl;
|
||||||
import com.nextcloud.talk.utils.ConductorRemapping;
|
import com.nextcloud.talk.utils.ConductorRemapping;
|
||||||
import com.nextcloud.talk.utils.DisplayUtils;
|
import com.nextcloud.talk.utils.DisplayUtils;
|
||||||
import com.nextcloud.talk.utils.KeyboardUtils;
|
import com.nextcloud.talk.utils.KeyboardUtils;
|
||||||
@ -285,6 +286,9 @@ public class ConversationsListController extends BaseController implements Searc
|
|||||||
@Override
|
@Override
|
||||||
protected void onAttach(@NonNull View view) {
|
protected void onAttach(@NonNull View view) {
|
||||||
super.onAttach(view);
|
super.onAttach(view);
|
||||||
|
|
||||||
|
new ClosedInterfaceImpl().setUpPushTokenRegistration();
|
||||||
|
|
||||||
if (!eventBus.isRegistered(this)) {
|
if (!eventBus.isRegistered(this)) {
|
||||||
eventBus.register(this);
|
eventBus.register(this);
|
||||||
}
|
}
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
DO NOT TOUCH; GENERATED BY DRONE
|
DO NOT TOUCH; GENERATED BY DRONE
|
||||||
<span class="mdl-layout-title">Lint Report: 1 error and 222 warnings</span>
|
<span class="mdl-layout-title">Lint Report: 1 error and 224 warnings</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user