mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-21 11:38:36 +00:00
fixup! Refactor video testapp.
This commit is contained in:
@@ -6,11 +6,7 @@
|
|||||||
package org.thoughtcrime.video.app
|
package org.thoughtcrime.video.app
|
||||||
|
|
||||||
import android.content.Intent
|
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.os.Bundle
|
||||||
import android.util.Log
|
|
||||||
import androidx.activity.compose.setContent
|
import androidx.activity.compose.setContent
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
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.composables.LabeledButton
|
||||||
import org.thoughtcrime.video.app.ui.theme.SignalTheme
|
import org.thoughtcrime.video.app.ui.theme.SignalTheme
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main activity for this sample app.
|
* Main activity for this sample app.
|
||||||
*/
|
*/
|
||||||
@@ -49,4 +44,4 @@ class MainActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,6 @@ class PlaybackTestActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@OptIn(UnstableApi::class)
|
@OptIn(UnstableApi::class)
|
||||||
@Composable
|
@Composable
|
||||||
fun ExoVideoView(source: MediaSource, exoPlayer: ExoPlayer, modifier: Modifier = Modifier) {
|
fun ExoVideoView(source: MediaSource, exoPlayer: ExoPlayer, modifier: Modifier = Modifier) {
|
||||||
@@ -105,4 +104,4 @@ fun GreetingPreview() {
|
|||||||
SignalTheme {
|
SignalTheme {
|
||||||
LabeledButton("Preview Render") {}
|
LabeledButton("Preview Render") {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,5 +7,4 @@ package org.thoughtcrime.video.app.transcode
|
|||||||
|
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
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) {
|
Button(onClick = onClick, modifier = modifier) {
|
||||||
Text(buttonLabel)
|
Text(buttonLabel)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user