mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
renaming and compressing some vector images, no real change
This commit is contained in:
@ -283,7 +283,7 @@ class MainActivity : SimpleActivity(), PhotoProcessor.MediaSavedListener, Camera
|
||||
if (isVideoCaptureIntent()) {
|
||||
mIsInPhotoMode = false
|
||||
hideIntentButtons()
|
||||
shutter.setImageResource(R.drawable.ic_video_rec)
|
||||
shutter.setImageResource(R.drawable.ic_video_rec_vector)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -65,10 +65,10 @@ data class MySize(val width: Int, val height: Int, val isFullScreen: Boolean = f
|
||||
|
||||
@DrawableRes
|
||||
fun getImageResId(): Int = when {
|
||||
isFullScreen -> R.drawable.ic_photo_full
|
||||
isSixteenToNine() -> R.drawable.ic_photo_16x9
|
||||
isFourToThree() -> R.drawable.ic_photo_4x3
|
||||
isSquare() -> R.drawable.ic_photo_1x1
|
||||
isFullScreen -> R.drawable.ic_photo_full_vector
|
||||
isSixteenToNine() -> R.drawable.ic_photo_16x9_vector
|
||||
isFourToThree() -> R.drawable.ic_photo_4x3_vector
|
||||
isSquare() -> R.drawable.ic_photo_1x1_vector
|
||||
else -> throw UnsupportedOperationException("This size $this is not supported")
|
||||
}
|
||||
|
||||
|
@ -56,10 +56,10 @@ enum class VideoQuality(val width: Int, val height: Int) {
|
||||
|
||||
@DrawableRes
|
||||
fun getImageResId(): Int = when (this) {
|
||||
UHD -> R.drawable.ic_video_uhd
|
||||
FHD -> R.drawable.ic_video_fhd
|
||||
HD -> R.drawable.ic_video_hd
|
||||
SD -> R.drawable.ic_video_sd
|
||||
UHD -> R.drawable.ic_video_uhd_vector
|
||||
FHD -> R.drawable.ic_video_fhd_vector
|
||||
HD -> R.drawable.ic_video_hd_vector
|
||||
SD -> R.drawable.ic_video_sd_vector
|
||||
}
|
||||
|
||||
@IdRes
|
||||
|
Reference in New Issue
Block a user