π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Don't show empty faces in debug
laurenspriemc142ed07b8a3
diff --git a/mobile/lib/ui/viewer/file_details/face_widget.dart b/mobile/lib/ui/viewer/file_details/face_widget.dartindex 03d6dbce3a..bde4548b8a 100644--- a/mobile/lib/ui/viewer/file_details/face_widget.dart+++ b/mobile/lib/ui/viewer/file_details/face_widget.dart@@ -233,6 +233,12 @@ class _FaceWidgetState extends State<FaceWidget> {style: Theme.of(context).textTheme.bodySmall,maxLines: 1,),+ if (kDebugMode && widget.face.score < 0.75)+ Text(+ '[Debug only]',+ style: Theme.of(context).textTheme.bodySmall,+ maxLines: 1,+ ),// if (kDebugMode)// if (highlight)// const Text(diff --git a/mobile/lib/ui/viewer/file_details/faces_item_widget.dart b/mobile/lib/ui/viewer/file_details/faces_item_widget.dartindex 8bfa91fb10..e360897492 100644--- a/mobile/lib/ui/viewer/file_details/faces_item_widget.dart+++ b/mobile/lib/ui/viewer/file_details/faces_item_widget.dart@@ -79,6 +79,8 @@ class _FacesItemWidgetState extends State<FacesItemWidget> {// Remove faces with low scoresif (!kDebugMode) {faces.removeWhere((face) => (face.score < 0.75));+ } else {+ faces.removeWhere((face) => (face.score < 0.5));}if (faces.isEmpty) {