|
|
@ -40,6 +40,7 @@ import com.keylesspalace.tusky.appstore.CacheUpdater; |
|
|
|
import com.keylesspalace.tusky.appstore.EventHub; |
|
|
|
import com.keylesspalace.tusky.appstore.EventHub; |
|
|
|
import com.keylesspalace.tusky.appstore.MainTabsChangedEvent; |
|
|
|
import com.keylesspalace.tusky.appstore.MainTabsChangedEvent; |
|
|
|
import com.keylesspalace.tusky.appstore.ProfileEditedEvent; |
|
|
|
import com.keylesspalace.tusky.appstore.ProfileEditedEvent; |
|
|
|
|
|
|
|
import com.keylesspalace.tusky.components.conversation.ConversationsRepository; |
|
|
|
import com.keylesspalace.tusky.db.AccountEntity; |
|
|
|
import com.keylesspalace.tusky.db.AccountEntity; |
|
|
|
import com.keylesspalace.tusky.entity.Account; |
|
|
|
import com.keylesspalace.tusky.entity.Account; |
|
|
|
import com.keylesspalace.tusky.interfaces.ActionButtonActivity; |
|
|
|
import com.keylesspalace.tusky.interfaces.ActionButtonActivity; |
|
|
@ -103,6 +104,8 @@ public final class MainActivity extends BottomSheetActivity implements ActionBut |
|
|
|
public EventHub eventHub; |
|
|
|
public EventHub eventHub; |
|
|
|
@Inject |
|
|
|
@Inject |
|
|
|
public CacheUpdater cacheUpdater; |
|
|
|
public CacheUpdater cacheUpdater; |
|
|
|
|
|
|
|
@Inject |
|
|
|
|
|
|
|
ConversationsRepository conversationRepository; |
|
|
|
|
|
|
|
|
|
|
|
private FloatingActionButton composeButton; |
|
|
|
private FloatingActionButton composeButton; |
|
|
|
private AccountHeader headerResult; |
|
|
|
private AccountHeader headerResult; |
|
|
@ -472,6 +475,7 @@ public final class MainActivity extends BottomSheetActivity implements ActionBut |
|
|
|
|
|
|
|
|
|
|
|
NotificationHelper.deleteNotificationChannelsForAccount(accountManager.getActiveAccount(), MainActivity.this); |
|
|
|
NotificationHelper.deleteNotificationChannelsForAccount(accountManager.getActiveAccount(), MainActivity.this); |
|
|
|
cacheUpdater.clearForUser(activeAccount.getId()); |
|
|
|
cacheUpdater.clearForUser(activeAccount.getId()); |
|
|
|
|
|
|
|
conversationRepository.deleteCacheForAccount(activeAccount.getId()); |
|
|
|
|
|
|
|
|
|
|
|
AccountEntity newAccount = accountManager.logActiveAccountOut(); |
|
|
|
AccountEntity newAccount = accountManager.logActiveAccountOut(); |
|
|
|
|
|
|
|
|
|
|
|