Skip to content

Commit

Permalink
onPause/Resume don't signal back/forground
Browse files Browse the repository at this point in the history
  • Loading branch information
martinwork committed Jul 16, 2024
1 parent 08be355 commit 54f0e70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/main/java/com/samsung/microbit/MBApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,18 @@ public void onStart(@NonNull LifecycleOwner owner) {
MBApp.getAppState().eventPairForeground();
}

//onPause & onResume occur when pairing confirmation dialogue shows

@Override
public void onResume(@NonNull LifecycleOwner owner) {
logi("onResume");
MBApp.getAppState().eventPairForeground();
//MBApp.getAppState().eventPairForeground();
}

@Override
public void onPause(@NonNull LifecycleOwner owner) {
logi("onPause");
MBApp.getAppState().eventPairBackground();
//MBApp.getAppState().eventPairBackground();
}

@Override
Expand Down

0 comments on commit 54f0e70

Please sign in to comment.