mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Fix conflicts
This commit is contained in:
parent
5b88111289
commit
41494bea5b
5 changed files with 6 additions and 34 deletions
|
|
@ -80,20 +80,13 @@ public class ContributionController {
|
||||||
//FIXME: Starts gallery (opens Google Photos)
|
//FIXME: Starts gallery (opens Google Photos)
|
||||||
Intent pickImageIntent = new Intent(ACTION_GET_CONTENT);
|
Intent pickImageIntent = new Intent(ACTION_GET_CONTENT);
|
||||||
pickImageIntent.setType("image/*");
|
pickImageIntent.setType("image/*");
|
||||||
<<<<<<< HEAD
|
|
||||||
Timber.d("startGalleryPick() called with pickImageIntent");
|
|
||||||
// See https://stackoverflow.com/questions/22366596/android-illegalstateexception-fragment-not-attached-to-activity-webview
|
|
||||||
if (!fragment.isAdded()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
=======
|
|
||||||
// See https://stackoverflow.com/questions/22366596/android-illegalstateexception-fragment-not-attached-to-activity-webview
|
// See https://stackoverflow.com/questions/22366596/android-illegalstateexception-fragment-not-attached-to-activity-webview
|
||||||
if (!fragment.isAdded()) {
|
if (!fragment.isAdded()) {
|
||||||
Timber.d("Fragment is not added, startActivityForResult cannot be called");
|
Timber.d("Fragment is not added, startActivityForResult cannot be called");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Timber.d("startGalleryPick() called with pickImageIntent");
|
Timber.d("startGalleryPick() called with pickImageIntent");
|
||||||
>>>>>>> directNearbyUploadsNewLocal
|
|
||||||
fragment.startActivityForResult(pickImageIntent, SELECT_FROM_GALLERY);
|
fragment.startActivityForResult(pickImageIntent, SELECT_FROM_GALLERY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -123,11 +116,9 @@ public class ContributionController {
|
||||||
if (isDirectUpload) {
|
if (isDirectUpload) {
|
||||||
shareIntent.putExtra("isDirectUpload", true);
|
shareIntent.putExtra("isDirectUpload", true);
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
>>>>>>> directNearbyUploadsNewLocal
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Timber.i("Image selected");
|
Timber.i("Image selected");
|
||||||
|
|
|
||||||
|
|
@ -92,19 +92,8 @@ public class CommonsApplicationModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
<<<<<<< HEAD
|
|
||||||
@Named("direct_nearby_upload_prefs")
|
|
||||||
public SharedPreferences providesDirectNearbyUploadPreferences() {
|
|
||||||
return application.getSharedPreferences("direct_nearby_upload_prefs", MODE_PRIVATE);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Provides
|
|
||||||
public UploadController providesUploadController(SessionManager sessionManager, @Named("default_preferences") SharedPreferences sharedPreferences) {
|
|
||||||
return new UploadController(sessionManager, application, sharedPreferences);
|
|
||||||
=======
|
|
||||||
public UploadController providesUploadController(SessionManager sessionManager, @Named("default_preferences") SharedPreferences sharedPreferences, Context context) {
|
public UploadController providesUploadController(SessionManager sessionManager, @Named("default_preferences") SharedPreferences sharedPreferences, Context context) {
|
||||||
return new UploadController(sessionManager, context, sharedPreferences);
|
return new UploadController(sessionManager, context, sharedPreferences);
|
||||||
>>>>>>> directNearbyUploadsNewLocal
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp
|
||||||
@Override
|
@Override
|
||||||
public void onRefresh() {
|
public void onRefresh() {
|
||||||
lockNearbyView(false);
|
lockNearbyView(false);
|
||||||
refreshView(true);
|
refreshView(false, LocationServiceManager.LocationChangeType.LOCATION_SIGNIFICANTLY_CHANGED);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,10 +54,8 @@ import fr.free.nrw.commons.modifications.ModificationsContentProvider;
|
||||||
import fr.free.nrw.commons.modifications.ModifierSequence;
|
import fr.free.nrw.commons.modifications.ModifierSequence;
|
||||||
import fr.free.nrw.commons.modifications.ModifierSequenceDao;
|
import fr.free.nrw.commons.modifications.ModifierSequenceDao;
|
||||||
import fr.free.nrw.commons.modifications.TemplateRemoveModifier;
|
import fr.free.nrw.commons.modifications.TemplateRemoveModifier;
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
import fr.free.nrw.commons.utils.ImageUtils;
|
import fr.free.nrw.commons.utils.ImageUtils;
|
||||||
>>>>>>> directNearbyUploadsNewLocal
|
|
||||||
import fr.free.nrw.commons.mwapi.MediaWikiApi;
|
import fr.free.nrw.commons.mwapi.MediaWikiApi;
|
||||||
import timber.log.Timber;
|
import timber.log.Timber;
|
||||||
|
|
||||||
|
|
@ -114,14 +112,10 @@ public class ShareActivity
|
||||||
private String description;
|
private String description;
|
||||||
private Snackbar snackbar;
|
private Snackbar snackbar;
|
||||||
private boolean duplicateCheckPassed = false;
|
private boolean duplicateCheckPassed = false;
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
private boolean isNearbyUpload = false;
|
|
||||||
|
|
||||||
=======
|
|
||||||
private boolean haveCheckedForOtherImages = false;
|
private boolean haveCheckedForOtherImages = false;
|
||||||
private boolean isNearbyUpload = false;
|
private boolean isNearbyUpload = false;
|
||||||
>>>>>>> directNearbyUploadsNewLocal
|
|
||||||
/**
|
/**
|
||||||
* Called when user taps the submit button.
|
* Called when user taps the submit button.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
package fr.free.nrw.commons.upload;
|
package fr.free.nrw.commons.upload;
|
||||||
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
>>>>>>> directNearbyUploadsNewLocal
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue