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

Google Maps location information sharing page settings button click n… #2634

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DaVinci9196
Copy link
Contributor

Google Maps location information sharing page settings button click no response

app name:google maps
packagename:com.google.android.apps.maps
Steps to reproduce:

  1. open google maps
  2. click google account avatar
  3. click location sharing
  4. click "setting icon"
  5. no response

@@ -134,7 +135,7 @@ class MainActivity : AppCompatActivity() {
Log.d(TAG, "Invoked with ${intent.action} and extras $extras")
super.onCreate(savedInstanceState)

val screenId = intent?.getIntExtra(EXTRA_SCREEN_ID, -1).takeIf { it != -1 } ?: ACTION_TO_SCREEN_ID[intent.action] ?: 1
val screenId = ACTION_TO_SCREEN_ID[intent.action] ?: intent?.getIntExtra(EXTRA_SCREEN_ID, -1).takeIf { it != -1 } ?: 1
Copy link
Member

Choose a reason for hiding this comment

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

What is the screen id sent by Google Maps? Giving priority to the action-based screen id will mean that we might not show the appropriate screen in some cases, so maybe there's a better way to handle this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

screen id is 1

Copy link
Member

@ale5000-git ale5000-git Nov 24, 2024

Choose a reason for hiding this comment

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

I don't know if 0 is a valid screen id but in case it isn't valid you can also change to:
val screenId = intent?.getIntExtra(EXTRA_SCREEN_ID, -1).takeIf { it > 1 } ?: ACTION_TO_SCREEN_ID[intent.action] ?: 1

So if the screen id is -1, 0, 1 it prefer action otherwise it use the screen id.

I haven't tried, just an idea.

@mar-v-in mar-v-in added this to the 0.3.6 milestone Nov 24, 2024
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.

3 participants