Skip to content

Commit

Permalink
Merge pull request #5637 from seadowg/remove-logging
Browse files Browse the repository at this point in the history
Remove lifecycle logging from FormFillingActivity
  • Loading branch information
grzesiek2010 authored Jun 21, 2023
2 parents 356b4fd + 4dcac6f commit 7374f21
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@
import org.odk.collect.permissions.PermissionsProvider;
import org.odk.collect.settings.SettingsProvider;
import org.odk.collect.settings.keys.ProjectKeys;
import org.odk.collect.shared.strings.Md5;
import org.odk.collect.strings.localization.LocalizedActivity;

import java.io.File;
Expand Down Expand Up @@ -393,8 +392,6 @@ public void allowSwiping(boolean doSwipe) {
*/
@Override
public void onCreate(Bundle savedInstanceState) {
Timber.w("onCreate %s", Md5.getMd5Hash(getIntent().getData().toString()));

// Workaround for https://issuetracker.google.com/issues/37124582. Some widgets trigger
// this issue by including WebViews
if (Build.VERSION.SDK_INT >= 24) {
Expand Down Expand Up @@ -780,8 +777,6 @@ private FormController getFormController() {

@Override
protected void onSaveInstanceState(Bundle outState) {
Timber.w("onSaveInstanceState %s", Md5.getMd5Hash(getIntent().getData().toString()));

super.onSaveInstanceState(outState);

outState.putString(KEY_SESSION_ID, sessionId);
Expand Down Expand Up @@ -1843,8 +1838,6 @@ private void updateNavigationButtonVisibility() {

@Override
protected void onStart() {
Timber.w("onStart %s", Md5.getMd5Hash(getIntent().getData().toString()));

super.onStart();
FormController formController = getFormController();

Expand All @@ -1863,17 +1856,13 @@ && new PlayServicesChecker().isGooglePlayServicesAvailable(this)) {

@Override
protected void onPause() {
Timber.w("onPause %s", Md5.getMd5Hash(getIntent().getData().toString()));

backgroundLocationViewModel.activityHidden();

super.onPause();
}

@Override
protected void onResume() {
Timber.w("onResume %s", Md5.getMd5Hash(getIntent().getData().toString()));

super.onResume();

activityDisplayed();
Expand Down Expand Up @@ -1976,8 +1965,6 @@ public boolean onKeyDown(int keyCode, KeyEvent event) {

@Override
protected void onDestroy() {
Timber.w("onDestroy %s", Md5.getMd5Hash(getIntent().getData().toString()));

if (formLoaderTask != null) {
formLoaderTask.setFormLoaderListener(null);
// We have to call cancel to terminate the thread, otherwise it
Expand Down

0 comments on commit 7374f21

Please sign in to comment.