diff --git a/app/src/main/java/ca/unb/lantau/ui/settings/SettingsFragment.kt b/app/src/main/java/ca/unb/lantau/ui/settings/SettingsFragment.kt index 01c1973..a4eb804 100644 --- a/app/src/main/java/ca/unb/lantau/ui/settings/SettingsFragment.kt +++ b/app/src/main/java/ca/unb/lantau/ui/settings/SettingsFragment.kt @@ -40,7 +40,10 @@ class SettingsFragment : Fragment() { //updates size when size selection changes binding.settingRadioGroup.setOnCheckedChangeListener{ group,checkedID -> - if(checkedID == binding.settingDefaultSizeVideo.id){ + if (checkedID == binding.settingSmallVideoSize.id) { + settingsViewModel.size.value = 8.0 + } + else if(checkedID == binding.settingDefaultSizeVideo.id){ settingsViewModel.size.value = 25.0 }else if(checkedID == binding.settingBigSizeVideo.id){ settingsViewModel.size.value = 50.0 diff --git a/app/src/main/java/ca/unb/lantau/ui/settings/SettingsViewModel.kt b/app/src/main/java/ca/unb/lantau/ui/settings/SettingsViewModel.kt index cea54f7..e7cd157 100644 --- a/app/src/main/java/ca/unb/lantau/ui/settings/SettingsViewModel.kt +++ b/app/src/main/java/ca/unb/lantau/ui/settings/SettingsViewModel.kt @@ -13,7 +13,7 @@ class SettingsViewModel : ViewModel() { //size of the file, grab this for use private val _size = MutableLiveData().apply { - value = 25.0 + value = 8.0 } val size: MutableLiveData = _size diff --git a/app/src/main/res/layout/fragment_settings.xml b/app/src/main/res/layout/fragment_settings.xml index 9c6a6ba..3c06fed 100644 --- a/app/src/main/res/layout/fragment_settings.xml +++ b/app/src/main/res/layout/fragment_settings.xml @@ -1,5 +1,6 @@ + android:layout_height="match_parent" + android:layout_marginStart="16dp" + android:layout_marginTop="8dp" + android:layout_marginEnd="16dp" + android:layout_marginBottom="8dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"> + + Settings Video Size Image Size + 8mb 25mb 50mb 500mb @@ -15,4 +16,5 @@ Share Delete Cancel + \ No newline at end of file diff --git a/video-examples/video_medium_size.mp4 b/video-examples/video_medium_size.mp4 new file mode 100644 index 0000000..25c109a Binary files /dev/null and b/video-examples/video_medium_size.mp4 differ diff --git a/video-examples/video_small_size-1.mp4 b/video-examples/video_small_size-1.mp4 new file mode 100644 index 0000000..eff3327 Binary files /dev/null and b/video-examples/video_small_size-1.mp4 differ diff --git a/video-examples/video_small_size-2.mp4 b/video-examples/video_small_size-2.mp4 new file mode 100644 index 0000000..362e1b3 Binary files /dev/null and b/video-examples/video_small_size-2.mp4 differ