Skip to content

Commit

Permalink
修改测试注解
Browse files Browse the repository at this point in the history
  • Loading branch information
zhujiang2 committed May 23, 2021
1 parent 9d76a08 commit 6357153
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/src/main/java/com/zj/test/BannerTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ data class BannerBean(
override val data: Any? = null
) : BaseBannerBean()


@ExperimentalPagerApi
@Composable
fun BannerTest() {
val context = LocalContext.current
Expand Down
5 changes: 3 additions & 2 deletions banner/src/main/java/com/zj/banner/BannerPager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private const val TAG = "BannerPager"
* [Indicator] 即可。
* @param onBannerClick Banner 点击事件的回调
*/
@ExperimentalPagerApi
@OptIn(ExperimentalPagerApi::class)
@Composable
fun <T : BaseBannerBean> BannerPager(
modifier: Modifier = Modifier,
Expand Down Expand Up @@ -73,7 +73,8 @@ fun <T : BaseBannerBean> BannerPager(
var mTimer: Timer? = null
var mTimerTask: TimerTask? = null

@ExperimentalPagerApi

@OptIn(ExperimentalPagerApi::class)
@Composable
fun startBanner(pagerState: PagerState, intervalTime: Long) {
val coroutineScope = rememberCoroutineScope()
Expand Down

0 comments on commit 6357153

Please sign in to comment.