File tree 3 files changed +4
-4
lines changed
app/src/main/java/fr/free/nrw/commons
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,6 @@ private void checkLocationPermission() {
546
546
547
547
548
548
private void updateClosestNearbyCardViewInfo () {
549
-
550
549
curLatLng = locationManager .getLastLocation ();
551
550
552
551
placesDisposable = Observable .fromCallable (() -> nearbyController
Original file line number Diff line number Diff line change 45
45
import fr .free .nrw .commons .MediaWikiImageView ;
46
46
import fr .free .nrw .commons .R ;
47
47
import fr .free .nrw .commons .category .CategoryDetailsActivity ;
48
+ import fr .free .nrw .commons .contributions .ContributionsFragment ;
48
49
import fr .free .nrw .commons .delete .DeleteTask ;
49
50
import fr .free .nrw .commons .di .CommonsDaggerSupportFragment ;
50
51
import fr .free .nrw .commons .location .LatLng ;
@@ -204,12 +205,14 @@ public void onGlobalLayout() {
204
205
};
205
206
view .getViewTreeObserver ().addOnGlobalLayoutListener (layoutListener );
206
207
locale = getResources ().getConfiguration ().locale ;
208
+
207
209
return view ;
208
210
}
209
211
210
212
@ Override
211
213
public void onResume () {
212
214
super .onResume ();
215
+ ((ContributionsFragment )(getParentFragment ().getParentFragment ())).nearbyNoificationCardView .setVisibility (View .GONE );
213
216
media = detailProvider .getMediaAtPosition (index );
214
217
if (media == null ) {
215
218
// Ask the detail provider to ping us when we're ready
Original file line number Diff line number Diff line change @@ -201,9 +201,7 @@ public void onClick(View view) {
201
201
* @param place Closes place where we will get information from
202
202
*/
203
203
public void updateContent (boolean isClosestNearbyPlaceFound , Place place ) {
204
- if (this .getVisibility () == GONE ) {
205
- return ; // If nearby card view is invisible because of preferences, do nothing
206
- }
204
+ Timber .d ("Update nearby card notification content" );
207
205
cardViewVisibilityState = CardViewVisibilityState .READY ;
208
206
permissionRequestButton .setVisibility (GONE );
209
207
contentLayout .setVisibility (VISIBLE );
You can’t perform that action at this time.
0 commit comments