WIP: Fix wear incorrectly dismiss notification#1335
Open
jonasoreland wants to merge 2 commits intomasterfrom
Open
WIP: Fix wear incorrectly dismiss notification#1335jonasoreland wants to merge 2 commits intomasterfrom
jonasoreland wants to merge 2 commits intomasterfrom
Conversation
1) It seems like posting on wear does not wakeup ListenerService (as it would if same was posted on phone...weird) 2) It seems like keeping notification show works fine while the MainActivity is running, good! Much easier. This is tested on my Pixel Watch 3. I'll test it a couple of weeks and see if it seems ok.
gerhardol
approved these changes
Mar 29, 2026
|
|
||
| public class MainActivity extends Activity | ||
| implements Constants, ValueModel.ChangeListener<TrackerState> { | ||
| private static final String TAG = "RU:MainActivity"; |
| @Override | ||
| protected void onCreate(Bundle savedInstanceState) { | ||
| super.onCreate(savedInstanceState); | ||
| Log.i(TAG, "onCreate"); |
Collaborator
There was a problem hiding this comment.
These are WIP, shouldbe at least v
I removed many of them in the phone app, it was hard to follow normal flow. You may want to do that too.
Since I do not have any Wear device, I do not much debugging and leave this to you.
| ", phoneApp=" + phoneApp + | ||
| " ,phoneRunning=" + phoneRunning + | ||
| " ,trackerState=" + trackerState); | ||
| if (mainActivityRunning == Boolean.TRUE) { |
Collaborator
There was a problem hiding this comment.
so this is the only change?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is tested on my Pixel Watch 3.
I'll test it a couple of weeks and see if it seems ok.