Skip to content

WIP: Fix wear incorrectly dismiss notification#1335

Open
jonasoreland wants to merge 2 commits intomasterfrom
wear-show-notification
Open

WIP: Fix wear incorrectly dismiss notification#1335
jonasoreland wants to merge 2 commits intomasterfrom
wear-show-notification

Conversation

@jonasoreland
Copy link
Copy Markdown
Owner

  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.

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.

public class MainActivity extends Activity
implements Constants, ValueModel.ChangeListener<TrackerState> {
private static final String TAG = "RU:MainActivity";
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why RU: for the tags?

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.i(TAG, "onCreate");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

so this is the only change?

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.

2 participants