-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
时长提示开关
- Loading branch information
Showing
10 changed files
with
122 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
v1.2.2 | ||
增加视频时长超过10分钟提示开关 | ||
调整视频时长提示为超过10分钟 | ||
|
||
v1.2.1 | ||
增加底部加号按钮隐藏 | ||
增加底部加号按钮禁止拍摄 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.2.1-70 | ||
1.2.2-72 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
core/src/main/java/com/freegang/ui/component/NeverOverScrollMode.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.freegang.ui.component | ||
|
||
import androidx.compose.foundation.ExperimentalFoundationApi | ||
import androidx.compose.foundation.Indication | ||
import androidx.compose.foundation.IndicationInstance | ||
import androidx.compose.foundation.LocalOverscrollConfiguration | ||
import androidx.compose.foundation.interaction.InteractionSource | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.runtime.CompositionLocalProvider | ||
import androidx.compose.ui.graphics.drawscope.ContentDrawScope | ||
|
||
// see at: https://blog.csdn.net/ly_xiamu/article/details/125830327 | ||
// see at: https://www.saoniuhuo.com/question/detail-2624369.html | ||
@OptIn(ExperimentalFoundationApi::class) | ||
@Composable | ||
fun NeverOverScrollMode( | ||
content: @Composable () -> Unit, | ||
) { | ||
CompositionLocalProvider( | ||
LocalOverscrollConfiguration provides null | ||
) { | ||
content() | ||
} | ||
} | ||
|
||
object NoIndication : Indication { | ||
private object NoIndicationInstance : IndicationInstance { | ||
override fun ContentDrawScope.drawIndication() { | ||
drawContent() | ||
} | ||
} | ||
|
||
@Composable | ||
override fun rememberUpdatedInstance(interactionSource: InteractionSource): IndicationInstance { | ||
return NoIndicationInstance | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters