瀏覽代碼

make all cam buttons reflect current state instead of triggered action

Resolves #1694

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 3 年之前
父節點
當前提交
47aa8ea5d4
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      app/src/main/java/com/nextcloud/talk/models/TakePictureViewModel.java

+ 6 - 6
app/src/main/java/com/nextcloud/talk/models/TakePictureViewModel.java

@@ -99,19 +99,19 @@ public class TakePictureViewModel extends ViewModel {
 
     public LiveData<Integer> getTorchToggleButtonImageResource() {
         return Transformations.map(isTorchEnabled(), enabled -> enabled
-            ? R.drawable.ic_baseline_flash_off_24
-            : R.drawable.ic_baseline_flash_on_24);
+            ? R.drawable.ic_baseline_flash_on_24
+            : R.drawable.ic_baseline_flash_off_24);
     }
 
     public LiveData<Integer> getLowResolutionToggleButtonImageResource() {
         return Transformations.map(isLowResolutionEnabled(), enabled -> enabled
-            ? R.drawable.ic_high_quality
-            : R.drawable.ic_low_quality);
+            ? R.drawable.ic_low_quality
+            : R.drawable.ic_high_quality);
     }
 
     public LiveData<Integer> getCropToggleButtonImageResource() {
         return Transformations.map(isCropEnabled(), enabled -> enabled
-            ? R.drawable.ic_crop_4_3
-            : R.drawable.ic_crop_16_9);
+            ? R.drawable.ic_crop_16_9
+            : R.drawable.ic_crop_4_3);
     }
 }