diff --git a/app/src/main/java/fr/free/nrw/commons/contributions/ContributionController.java b/app/src/main/java/fr/free/nrw/commons/contributions/ContributionController.java index 551852451..65604a7e0 100644 --- a/app/src/main/java/fr/free/nrw/commons/contributions/ContributionController.java +++ b/app/src/main/java/fr/free/nrw/commons/contributions/ContributionController.java @@ -46,7 +46,8 @@ public class ContributionController { private boolean isInAppCameraUpload; public LocationPermissionCallback locationPermissionCallback; private LocationPermissionsHelper locationPermissionsHelper; - LiveData> failedAndPendingContributionList; + // Temporarily disabled, see issue [https://github.com/commons-app/apps-android-commons/issues/5847] + // LiveData> failedAndPendingContributionList; LiveData> pendingContributionList; LiveData> failedContributionList; @@ -383,21 +384,22 @@ public class ContributionController { } /** + * Temporarily disabled, see issue [https://github.com/commons-app/apps-android-commons/issues/5847] * Fetches the contributions with the state "IN_PROGRESS", "QUEUED", "PAUSED" and "FAILED" and * then it populates the `failedAndPendingContributionList`. **/ - void getFailedAndPendingContributions() { - final PagedList.Config pagedListConfig = - (new PagedList.Config.Builder()) - .setPrefetchDistance(50) - .setPageSize(10).build(); - Factory factory; - factory = repository.fetchContributionsWithStates( - Arrays.asList(Contribution.STATE_IN_PROGRESS, Contribution.STATE_QUEUED, - Contribution.STATE_PAUSED, Contribution.STATE_FAILED)); - - LivePagedListBuilder livePagedListBuilder = new LivePagedListBuilder(factory, - pagedListConfig); - failedAndPendingContributionList = livePagedListBuilder.build(); - } +// void getFailedAndPendingContributions() { +// final PagedList.Config pagedListConfig = +// (new PagedList.Config.Builder()) +// .setPrefetchDistance(50) +// .setPageSize(10).build(); +// Factory factory; +// factory = repository.fetchContributionsWithStates( +// Arrays.asList(Contribution.STATE_IN_PROGRESS, Contribution.STATE_QUEUED, +// Contribution.STATE_PAUSED, Contribution.STATE_FAILED)); +// +// LivePagedListBuilder livePagedListBuilder = new LivePagedListBuilder(factory, +// pagedListConfig); +// failedAndPendingContributionList = livePagedListBuilder.build(); +// } } diff --git a/app/src/main/java/fr/free/nrw/commons/contributions/ContributionsFragment.java b/app/src/main/java/fr/free/nrw/commons/contributions/ContributionsFragment.java index f4ff89dfc..ca9677691 100644 --- a/app/src/main/java/fr/free/nrw/commons/contributions/ContributionsFragment.java +++ b/app/src/main/java/fr/free/nrw/commons/contributions/ContributionsFragment.java @@ -303,16 +303,17 @@ public class ContributionsFragment } /** + * Temporarily disabled, see issue [https://github.com/commons-app/apps-android-commons/issues/5847] * Sets the visibility of the upload icon based on the number of failed and pending * contributions. */ - public void setUploadIconVisibility() { - contributionController.getFailedAndPendingContributions(); - contributionController.failedAndPendingContributionList.observe(getViewLifecycleOwner(), - list -> { - updateUploadIcon(list.size()); - }); - } +// public void setUploadIconVisibility() { +// contributionController.getFailedAndPendingContributions(); +// contributionController.failedAndPendingContributionList.observe(getViewLifecycleOwner(), +// list -> { +// updateUploadIcon(list.size()); +// }); +// } /** * Sets the count for the upload icon based on the number of pending and failed contributions. @@ -531,7 +532,8 @@ public class ContributionsFragment if (!isUserProfile) { setNotificationCount(); fetchCampaigns(); - setUploadIconVisibility(); + // Temporarily disabled, see issue [https://github.com/commons-app/apps-android-commons/issues/5847] + // setUploadIconVisibility(); setUploadIconCount(); } } @@ -757,19 +759,18 @@ public class ContributionsFragment } /** - * Updates the visibility of the pending uploads ImageView based on the given count. - * + * Temporarily disabled, see issue [https://github.com/commons-app/apps-android-commons/issues/5847] * @param count The number of pending uploads. */ - public void updateUploadIcon(int count) { - if (pendingUploadsImageView != null) { - if (count != 0) { - pendingUploadsImageView.setVisibility(View.VISIBLE); - } else { - pendingUploadsImageView.setVisibility(View.GONE); - } - } - } +// public void updateUploadIcon(int count) { +// if (pendingUploadsImageView != null) { +// if (count != 0) { +// pendingUploadsImageView.setVisibility(View.VISIBLE); +// } else { +// pendingUploadsImageView.setVisibility(View.GONE); +// } +// } +// } /** * Replace whatever is in the current contributionsFragmentContainer view with diff --git a/app/src/main/res/layout/pending_uploads_icon.xml b/app/src/main/res/layout/pending_uploads_icon.xml index 717bbd3bf..34a0b637e 100644 --- a/app/src/main/res/layout/pending_uploads_icon.xml +++ b/app/src/main/res/layout/pending_uploads_icon.xml @@ -14,10 +14,10 @@ android:id="@+id/pending_uploads_image_view" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:visibility="gone" android:layout_marginEnd="@dimen/activity_margin_horizontal" android:layout_marginRight="@dimen/activity_margin_horizontal" android:gravity="center" + android:visibility="visible" app:srcCompat="?attr/upload_icon_drawable" /> Dette sted har endnu ikke noget billede, så gå hen og tag et! Dette sted har allerede et billede. Tjekker nu, om dette sted har et billede. + Fejl under indlæsning + Ingen anvendelser fundet + Commons + Andre wikier + + Filanvendelser diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index b515f5390..a8b05824b 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -43,6 +43,7 @@ * Miguel2706 * Mirzali * No se +* Osvaldorino * Pompilos * Raos10 * Rodney Araujo @@ -407,6 +408,7 @@ Borrar Logros Perfil + Las insignias Estadísticas Agradecimientos recibidos Imágenes destacadas diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 06bc9b1e0..417c23a5a 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -842,4 +842,10 @@ Cet endroit n\'a pas encore de photo, allez en prendre une ! Cet endroit a déjà une photo. Je vérifie maintenant si cet endroit a une photo. + Erreur lors du chargement + Aucune utilisation trouvée + Commons + Autres wikis + + Utilisations du fichier diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 6306efd03..675082826 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -770,4 +770,7 @@ Questo posto non ha ancora una foto, scattane una! Questo posto ha già una foto. Ora controlliamo se questo posto ha una foto. + Commons + Altri wiki + Utilizzi del file diff --git a/app/src/main/res/values-iw/strings.xml b/app/src/main/res/values-iw/strings.xml index edae38c13..b82c84a41 100644 --- a/app/src/main/res/values-iw/strings.xml +++ b/app/src/main/res/values-iw/strings.xml @@ -389,11 +389,13 @@ מחיקה הישגים פרופיל + סמלים סטטיסטיקה התודה התקבלה תמונות מומלצות תמונות דרך \"מקומות בסביבה\" - רמה + רמה %d + %s (רמה %s) תמונות שהועלו תמונות שלא שוחזרו תמונות בשימוש @@ -834,4 +836,10 @@ אין עדיין תמונה למקום הזה, אפשר פשוט לצלם אחת! למקום הזה כבר יש תמונה. עכשיו מתבצעת בדיקה האם למקום הזה יש תמונה. + אירעה שגיאה בעת טעינה + לא נמצאו שימושים + ויקישיתוף + אתרי ויקי אחרים + + שימושים בקובץ diff --git a/app/src/main/res/values-lb/strings.xml b/app/src/main/res/values-lb/strings.xml index 06de648fc..94119bbac 100644 --- a/app/src/main/res/values-lb/strings.xml +++ b/app/src/main/res/values-lb/strings.xml @@ -526,4 +526,7 @@ Läsche confirméieren Läschen Ofbriechen + Feeler beim Lueden + Commons + Aner Wikien diff --git a/app/src/main/res/values-mk/strings.xml b/app/src/main/res/values-mk/strings.xml index b6443b394..f1c581888 100644 --- a/app/src/main/res/values-mk/strings.xml +++ b/app/src/main/res/values-mk/strings.xml @@ -800,4 +800,10 @@ Местово сè уште нема слика. Направете ја! Местово веќе има слика. Проверувам дали местово има слика. + Грешка при вчитување + Не најдов употреби + Ризница + Други викија + + Употреби на податотеката diff --git a/app/src/main/res/values-pa/strings.xml b/app/src/main/res/values-pa/strings.xml index 2733093d4..2abc1fedd 100644 --- a/app/src/main/res/values-pa/strings.xml +++ b/app/src/main/res/values-pa/strings.xml @@ -194,6 +194,7 @@ ਪ੍ਰਾਪਤੀਆਂ ਅੰਕੜੇ ਧੰਨਵਾਦ ਪ੍ਰਾਪਤ ਹੋਏ + ਪੱਧਰ %d ਆਪਣੀਆਂ ਪ੍ਰਾਪਤੀਆਂ ਨੂੰ ਆਪਣੇ ਦੋਸਤਾਂ ਨਾਲ ਸਾਂਝਾ ਕਰੋ! ਸੂਚਨਾਵਾਂ (ਪੜ੍ਹਿਆਂ) ਸੂਚੀ @@ -215,4 +216,9 @@ ਵਰਤੋਂਕਾਰ ਟਿਕਾਣਾ ਨਵਿਆਈਆ ਗਿਆ ਤੁਹਾਡੇ ਦਾਖਲੇ ਦੀ ਮਿਆਦ ਪੁੱਗ ਗਈ ਹੈ। ਕਿਰਪਾ ਕਰਕੇ ਦੁਬਾਰਾ ਦਾਖਲ ਹੋਵੋ। + ਲੱਦਨ ਵਿੱਚ ਗਲਤੀ + ਕੋਈ ਵਰਤੋਂ ਨਹੀਂ ਲੱਭੀ + ਸ਼ਾਮਲਾਟ + ਹੋਰ ਵਿਕੀਆਂ + ਫ਼ਾਈਲ ਦੀ ਵਰਤੋਂ diff --git a/app/src/main/res/values-pms/strings.xml b/app/src/main/res/values-pms/strings.xml index 5a25ce794..0468dbd96 100644 --- a/app/src/main/res/values-pms/strings.xml +++ b/app/src/main/res/values-pms/strings.xml @@ -796,4 +796,10 @@ Ës pòst a l\'ha ancor gnun-e fòto, ch\'a na pija un-a! Ës pòst a l\'ha già dle fòto. An camin ch\'as verìfica si cost pòst -sì a l\'ha dle fòto. + Eror durant ël cariament + Gnun usagi trovà + Commons + Àutre wiki + + Usagi dl\'archivi diff --git a/app/src/main/res/values-qq/strings.xml b/app/src/main/res/values-qq/strings.xml index 833743aef..1be987f42 100644 --- a/app/src/main/res/values-qq/strings.xml +++ b/app/src/main/res/values-qq/strings.xml @@ -205,4 +205,5 @@ \"Set as avatar\" should be translated the same as {{msg-wm|Commons-android-strings-menu set avatar}}. {{Doc-commons-app-depicts}} An answer to the question in {{msg-wm|Commons-android-strings-custom selector confirm deletion message}}. + {{optional}}