File tree Expand file tree Collapse file tree
src/main/java/org/quantumbadger/redreader/compose/ctx Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import androidx.compose.runtime.mutableStateOf
2727import androidx.compose.runtime.remember
2828import androidx.compose.runtime.setValue
2929import androidx.compose.runtime.staticCompositionLocalOf
30+ import org.quantumbadger.redreader.account.RedditAccountChangeListener
3031import org.quantumbadger.redreader.account.RedditAccountId
3132import org.quantumbadger.redreader.account.RedditAccountManager
3233import org.quantumbadger.redreader.activities.RedditTermsActivity
@@ -55,7 +56,7 @@ fun RRComposeContext(
5556 DisposableEffect (Unit ) {
5657 val accountManager = RedditAccountManager .getInstance(activity)
5758
58- val updateListener = {
59+ val updateListener = RedditAccountChangeListener {
5960 AndroidCommon .runOnUiThread {
6061 currentAccountId = RedditAccountId (accountManager.defaultAccount.canonicalUsername)
6162 }
You can’t perform that action at this time.
0 commit comments