|
29 | 29 | import javax.inject.Named;
|
30 | 30 |
|
31 | 31 | import butterknife.ButterKnife;
|
32 |
| -import fr.free.nrw.commons.CommonsApplication; |
33 | 32 | import fr.free.nrw.commons.Media;
|
34 | 33 | import fr.free.nrw.commons.R;
|
35 | 34 | import fr.free.nrw.commons.auth.AuthenticatedActivity;
|
|
42 | 41 | import fr.free.nrw.commons.modifications.ModificationsContentProvider;
|
43 | 42 | import fr.free.nrw.commons.modifications.ModifierSequence;
|
44 | 43 | import fr.free.nrw.commons.modifications.TemplateRemoveModifier;
|
45 |
| -import fr.free.nrw.commons.mwapi.EventLog; |
46 | 44 | import fr.free.nrw.commons.mwapi.MediaWikiApi;
|
47 | 45 | import timber.log.Timber;
|
48 | 46 |
|
@@ -181,13 +179,6 @@ public void onCategoriesSave(List<String> categories) {
|
181 | 179 | // FIXME: Make sure that the content provider is up
|
182 | 180 | // This is the wrong place for it, but bleh - better than not having it turned on by default for people who don't go throughl ogin
|
183 | 181 | ContentResolver.setSyncAutomatically(sessionManager.getCurrentAccount(), ModificationsContentProvider.AUTHORITY, true); // Enable sync by default!
|
184 |
| - EventLog.schema(CommonsApplication.EVENT_CATEGORIZATION_ATTEMPT, mwApi, prefs) |
185 |
| - .param("username", sessionManager.getCurrentAccount().name) |
186 |
| - .param("categories-count", categories.size()) |
187 |
| - .param("files-count", photosList.size()) |
188 |
| - .param("source", Contribution.SOURCE_EXTERNAL) |
189 |
| - .param("result", "queued") |
190 |
| - .log(); |
191 | 182 | finish();
|
192 | 183 | }
|
193 | 184 |
|
@@ -286,27 +277,6 @@ protected void onAuthFailure() {
|
286 | 277 | finish();
|
287 | 278 | }
|
288 | 279 |
|
289 |
| - @Override |
290 |
| - public void onBackPressed() { |
291 |
| - super.onBackPressed(); |
292 |
| - if (categorizationFragment != null && categorizationFragment.isVisible()) { |
293 |
| - EventLog.schema(CommonsApplication.EVENT_CATEGORIZATION_ATTEMPT, mwApi, prefs) |
294 |
| - .param("username", sessionManager.getCurrentAccount().name) |
295 |
| - .param("categories-count", categorizationFragment.getCurrentSelectedCount()) |
296 |
| - .param("files-count", photosList.size()) |
297 |
| - .param("source", Contribution.SOURCE_EXTERNAL) |
298 |
| - .param("result", "cancelled") |
299 |
| - .log(); |
300 |
| - } else { |
301 |
| - EventLog.schema(CommonsApplication.EVENT_UPLOAD_ATTEMPT, mwApi, prefs) |
302 |
| - .param("username", sessionManager.getCurrentAccount().name) |
303 |
| - .param("source", getIntent().getStringExtra(UploadService.EXTRA_SOURCE)) |
304 |
| - .param("multiple", true) |
305 |
| - .param("result", "cancelled") |
306 |
| - .log(); |
307 |
| - } |
308 |
| - } |
309 |
| - |
310 | 280 | @Override
|
311 | 281 | public void onBackStackChanged() {
|
312 | 282 | getSupportActionBar().setDisplayHomeAsUpEnabled(mediaDetails != null && mediaDetails.isVisible()) ;
|
|
0 commit comments