fixed link handler fab
This commit is contained in:
parent
1e3a37f0a6
commit
0ad6692efa
|
@ -136,6 +136,10 @@ class UserStreamDumper(val context: Context) : DumperPlugin {
|
|||
val userStream = account.newMicroBlogInstance(context, cls = FanfouStream::class.java)
|
||||
dumpContext.stdout.println("Beginning user stream...")
|
||||
dumpContext.stdout.flush()
|
||||
if (includeTimeline) {
|
||||
dumpContext.stderr.println("Timeline only is effectively useless for Fanfou")
|
||||
dumpContext.stderr.flush()
|
||||
}
|
||||
val callback = object : FanfouTimelineStreamCallback(account.key.id) {
|
||||
|
||||
override fun onException(ex: Throwable): Boolean {
|
||||
|
@ -145,10 +149,7 @@ class UserStreamDumper(val context: Context) : DumperPlugin {
|
|||
}
|
||||
|
||||
override fun onHomeTimeline(status: Status): Boolean {
|
||||
if (!includeTimeline && includeInteractions) return true
|
||||
dumpContext.stdout.println("Home: @${status.user.screenName}: ${status.text.trim('\n')}")
|
||||
dumpContext.stdout.flush()
|
||||
return true
|
||||
return false
|
||||
}
|
||||
|
||||
override fun onActivityAboutMe(activity: Activity): Boolean {
|
||||
|
|
|
@ -511,7 +511,7 @@ class LinkHandlerActivity : BaseActivity(), SystemWindowsInsetsCallback, IContro
|
|||
}
|
||||
|
||||
private fun updateActionsButton() {
|
||||
val fab = window.findViewById(R.id.actionButtons) as? FloatingActionButton ?: return
|
||||
val fab = window.findViewById(R.id.actionsButton) as? FloatingActionButton ?: return
|
||||
val fragment = currentVisibleFragment as? IFloatingActionButtonFragment
|
||||
val info = fragment?.getActionInfo("link_handler") ?: run {
|
||||
fab.visibility = View.GONE
|
||||
|
|
Loading…
Reference in New Issue