mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	Merge changes from 3.1-release (#4629)
* Cherry-Picked NPE fix from master (#4569) * Fix notification bug #4547 (#4570) * Make Single Query for Nearby and WLM pins (#4573) * Merge nearby and monument queries * Bug Fix- query resource path change on shouldQueryForMonuments * Bug Fixes 1. Propagate exceptions for nearby API calls to caller 2. Fix too much work on main thread exception in NearbyParentFragment * Modify parameters for Nearby query * Bug fix- current location marker (#4580) * Move WLM template below geolocation template (#4582) * Modify string for WLM upload notice * Fix bug #4583 (#4591) * Fix bug #4585 by updating kotlin and acra version (#4592) * Fixes #4554 - only use WLM2021 template for countries that are included in it (#4574) * Fixes #4554 1. For WLM uploads reverse geo code and see if the country code is supported -only then is the WLM upload flow triggered, otherwise usual nearby uploads happen 2. Bug Fix - Current Location marker and area * Fixed compile error added after rebasing * Bug fix for country code in reverse geo code * Update WLM camaign dates [Do not merge now, merge only after alpha release] (#4584) * Updates dates for WML campaign * Bug fix- campaign dates * Fixed logic for WLM enablement - stick to the month of September * Add countries supported by WLM2021 template, except Italy * Versioning for v3.1.0 * Update changelog.md * Fix empty default lang bug (#4608) * Fix bug #4583 * Fix empty default lang bug * Fixes #4595 - Updated nearby query (#4622) * Fixes #4595 - Updated nearby query * Removed logic to replace local language in nearby query - that might acccidentally replace other strings * Fetch property location in usual nearby query * Remove duplicate line (#4626) * Change "learn more" link to new wiki * Add Sweden's P3426 to property filter * Fixes #4601 - 1. Handle possible exceptions in upload file from stash 2. Modify MWException, as error is nullable, update getTitle and getMessage to rever that (#4627) * Versioning for v3.1.1 * Update changelog.md * Updated DB version to rever integrity Co-authored-by: Madhur Gupta <30932899+madhurgupta10@users.noreply.github.com> Co-authored-by: Josephine Lim <josephinelim86@gmail.com>
This commit is contained in:
		
							parent
							
								
									b91222329e
								
							
						
					
					
						commit
						7476b0a24d
					
				
					 38 changed files with 383 additions and 409 deletions
				
			
		|  | @ -40,7 +40,8 @@ data class Contribution constructor( | |||
|     var dateCreated: Date? = null, | ||||
|     var dateModified: Date? = null, | ||||
|     var hasInvalidLocation : Int =  0, | ||||
|     var contentUri: Uri? = null | ||||
|     var contentUri: Uri? = null, | ||||
|     var countryCode : String? = null | ||||
| ) : Parcelable { | ||||
| 
 | ||||
|     fun completeWith(media: Media): Contribution { | ||||
|  |  | |||
|  | @ -454,7 +454,7 @@ public class ContributionsFragment | |||
|     private void updateClosestNearbyCardViewInfo() { | ||||
|         curLatLng = locationManager.getLastLocation(); | ||||
|         compositeDisposable.add(Observable.fromCallable(() -> nearbyController | ||||
|                 .loadAttractionsFromLocation(curLatLng, curLatLng, true, false)) // thanks to boolean, it will only return closest result | ||||
|                 .loadAttractionsFromLocation(curLatLng, curLatLng, true, false, false)) // thanks to boolean, it will only return closest result | ||||
|                 .subscribeOn(Schedulers.io()) | ||||
|                 .observeOn(AndroidSchedulers.mainThread()) | ||||
|                 .subscribe(this::updateNearbyNotification, | ||||
|  | @ -528,7 +528,7 @@ public class ContributionsFragment | |||
|      * of campaigns on the campaigns card | ||||
|      */ | ||||
|     private void fetchCampaigns() { | ||||
|         if (Utils.isMonumentsEnabled(new Date(), store)) { | ||||
|         if (Utils.isMonumentsEnabled(new Date())) { | ||||
|             campaignView.setCampaign(wlmCampaign); | ||||
|             campaignView.setVisibility(View.VISIBLE); | ||||
|         } else if (store.getBoolean(CampaignView.CAMPAIGNS_DEFAULT_PREFERENCE, true)) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ashish
						Ashish