Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Travel Behavior Studies Feature #1241

Merged
merged 5 commits into from
Sep 5, 2024

Conversation

amrhossamdev
Copy link
Member

@amrhossamdev amrhossamdev commented Sep 5, 2024

Fixes: #1240

Key Changes

Disabled Travel Behavior Functionality (No longer using ACTIVITY_RECOGNITION)

  • Commented Out Public Functions in TravelBehaviourManager
    To make restoring the feature easier in the future, public functions have been commented instead of fully removing them. This avoids the need to edit multiple parts of the code.

  • Removed ACTIVITY_RECOGNITION Permission from AndroidManifest.xml
    Since the travel behavior functionality is no longer in use, the related permission has been removed from the manifest file.

  • Removed Preferences Related to the Travel Behavior Study
    Cleaned up preferences and configurations that were associated with the travel behavior study feature.

  • Apply the AndroidStyle.xml style template to your code in Android Studio.

  • Run the unit tests with gradlew connectedObaGoogleDebugAndroidTest to make sure you didn't break anything

  • If you have multiple commits please combine them into one commit by squashing them for the initial submission of the pull

Copy link
Member

@aaronbrethorst aaronbrethorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 love to see another pair of comments added that link the reader to the issue, like you did in the java file but otherwise 🚀

@@ -77,6 +77,11 @@
import java.util.ArrayList;
import java.util.List;

/**
* This feature has been disabled due to issues related to ticket #1240.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is perfect 👍

Copy link
Member

@aaronbrethorst aaronbrethorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@aaronbrethorst aaronbrethorst merged commit cab50df into main Sep 5, 2024
2 checks passed
@aaronbrethorst aaronbrethorst deleted the refactor/travel-behaviour-manager branch September 5, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable or remove travel behavior features
2 participants