-
Notifications
You must be signed in to change notification settings - Fork 758
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
Re-organize location settings flags [PSF-1062] #6244
Conversation
@@ -1552,7 +1553,7 @@ class TimelineFragment @Inject constructor( | |||
attachmentTypeSelector = AttachmentTypeSelectorView(vectorBaseActivity, vectorBaseActivity.layoutInflater, this@TimelineFragment) | |||
attachmentTypeSelector.setAttachmentVisibility( | |||
AttachmentTypeSelectorView.Type.LOCATION, | |||
vectorPreferences.isLocationSharingEnabled() | |||
BuildConfig.enableLocationSharing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we use the VectorFeatures
with the default value set to BuildConfig.enableLocationSharing
then we'll also be able to enable/disable location sharing without recompiling the app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 The comment about using VectorFeatures
is non blocking for me
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Type of change
Content
We have many settings flags to be able to enable static/live location sharing:
To simplify the location sharing feature this PR suggests:
Motivation and context
Screenshots / GIFs
Tests
Tested devices
Checklist