fixup! Refactor video testapp.
This commit is contained in:
parent
8b24498fa7
commit
dd1a15c249
4 changed files with 4 additions and 11 deletions
|
@ -6,11 +6,7 @@
|
|||
package org.thoughtcrime.video.app
|
||||
|
||||
import android.content.Intent
|
||||
import android.content.pm.ActivityInfo
|
||||
import android.content.pm.PackageManager
|
||||
import android.content.pm.PackageManager.NameNotFoundException
|
||||
import android.os.Bundle
|
||||
import android.util.Log
|
||||
import androidx.activity.compose.setContent
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
|
@ -25,7 +21,6 @@ import org.thoughtcrime.video.app.transcode.TranscodeTestActivity
|
|||
import org.thoughtcrime.video.app.ui.composables.LabeledButton
|
||||
import org.thoughtcrime.video.app.ui.theme.SignalTheme
|
||||
|
||||
|
||||
/**
|
||||
* Main activity for this sample app.
|
||||
*/
|
||||
|
@ -49,4 +44,4 @@ class MainActivity : AppCompatActivity() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -85,7 +85,6 @@ class PlaybackTestActivity : AppCompatActivity() {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
@OptIn(UnstableApi::class)
|
||||
@Composable
|
||||
fun ExoVideoView(source: MediaSource, exoPlayer: ExoPlayer, modifier: Modifier = Modifier) {
|
||||
|
@ -105,4 +104,4 @@ fun GreetingPreview() {
|
|||
SignalTheme {
|
||||
LabeledButton("Preview Render") {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,5 +7,4 @@ package org.thoughtcrime.video.app.transcode
|
|||
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
|
||||
class TranscodeTestActivity : AppCompatActivity() {
|
||||
}
|
||||
class TranscodeTestActivity : AppCompatActivity()
|
||||
|
|
|
@ -15,4 +15,4 @@ fun LabeledButton(buttonLabel: String, modifier: Modifier = Modifier, onClick: (
|
|||
Button(onClick = onClick, modifier = modifier) {
|
||||
Text(buttonLabel)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue