Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Remove duplicate people naming banner

ashilkndabf4bb30904
diff --git a/mobile/lib/ui/viewer/people/cluster_page.dart b/mobile/lib/ui/viewer/people/cluster_page.dart
index 51062e69e2..7b3e8d1b28 100644
--- a/mobile/lib/ui/viewer/people/cluster_page.dart
+++ b/mobile/lib/ui/viewer/people/cluster_page.dart
@@ -219,62 +219,6 @@ class _ClusterPageState extends State<ClusterPage> {
),
),
),
- showNamingBanner
- ? SafeArea(
- child: Dismissible(
- key: const Key("namingBanner"),
- direction: DismissDirection.horizontal,
- onDismissed: (direction) {
- setState(() {
- userDismissedNamingBanner = true;
- });
- },
- child: PeopleBanner(
- type: PeopleBannerType.addName,
- faceWidget: PersonFaceWidget(
- files.first,
- clusterID: widget.clusterID,
- ),
- actionIcon: Icons.add_outlined,
- text: S.of(context).addAName,
- subText: S.of(context).findPeopleByName,
- onTap: () async {
- if (widget.personID == null) {
- final result = await showAssignPersonAction(
- context,
- clusterID: widget.clusterID,
- );
- if (result != null &&
- result is (PersonEntity, EnteFile)) {
- Navigator.pop(context);
- // ignore: unawaited_futures
- routeToPage(
- context,
- PeoplePage(
- person: result.$1,
- searchResult: null,
- ),
- );
- } else if (result != null &&
- result is PersonEntity) {
- Navigator.pop(context);
- // ignore: unawaited_futures
- routeToPage(
- context,
- PeoplePage(
- person: result,
- searchResult: null,
- ),
- );
- }
- } else {
- showShortToast(context, "No personID or clusterID");
- }
- },
- ),
- ),
- )
- : const SizedBox.shrink(),
],
),
),