aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-01-22 23:42:39 -0500
committerAllan Wang <me@allanwang.ca>2019-01-22 23:42:39 -0500
commite874b788753ce69ea561b41dc13dfb230c750690 (patch)
treef4b9b072cd8fb2d6428fc049dc2c8211d346e689
parentbc623f740eaf74a16eaed241448b802ff26b4197 (diff)
downloadfrost-e874b788753ce69ea561b41dc13dfb230c750690.tar.gz
frost-e874b788753ce69ea561b41dc13dfb230c750690.tar.bz2
frost-e874b788753ce69ea561b41dc13dfb230c750690.zip
Add back runOnUiThread
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt2
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/views/FrostRecyclerView.kt3
2 files changed, 1 insertions, 4 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
index 63da4f50..b4215913 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
@@ -516,7 +516,7 @@ abstract class BaseMainActivity : BaseActivity(), MainActivityContract,
get() = supportFragmentManager.findFragmentByTag("android:switcher:${R.id.container}:${viewPager.currentItem}") as BaseFragment
override fun reloadFragment(fragment: BaseFragment) {
- adapter.reloadFragment(fragment)
+ runOnUiThread { adapter.reloadFragment(fragment) }
}
inner class SectionsPagerAdapter(val pages: List<FbItem>) : FragmentPagerAdapter(supportFragmentManager) {
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostRecyclerView.kt b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostRecyclerView.kt
index 9e0b70b2..b9fe69d1 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostRecyclerView.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostRecyclerView.kt
@@ -27,10 +27,8 @@ import com.pitchedapps.frost.contracts.FrostContentContainer
import com.pitchedapps.frost.contracts.FrostContentCore
import com.pitchedapps.frost.contracts.FrostContentParent
import com.pitchedapps.frost.fragments.RecyclerContentContract
-import com.pitchedapps.frost.utils.L
import com.pitchedapps.frost.utils.Prefs
import kotlinx.coroutines.ExperimentalCoroutinesApi
-import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.launch
import kotlinx.coroutines.supervisorScope
@@ -83,7 +81,6 @@ class FrostRecyclerView @JvmOverloads constructor(
recyclerContract.reload { parent.progressChannel.offer(it) }
}
} catch (e: Exception) {
-
}
parent.progressChannel.offer(100)
parent.refreshChannel.offer(false)