Skip to content

Commit 60f7c4d

Browse files
committed
test-app: opt-in unstable API usage to fix lint
Apparently setDurationMs is marked as unstable and used in the onConfigurationChanged callback in MainActivity
1 parent 970af83 commit 60f7c4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test-app/src/main/java/net/newpipe/newplayer/testapp/MainActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ class MainActivity : AppCompatActivity() {
202202
* In a pure compose environment such reconfigurations are not necessary. Since NewPipe
203203
* might not be fully Compose yet, such hacks are required.
204204
*/
205+
@OptIn(UnstableApi::class)
205206
override fun onConfigurationChanged(newConfig: Configuration) {
206207
super.onConfigurationChanged(newConfig)
207208
if (currentOrientation != newConfig.orientation) {

0 commit comments

Comments
 (0)