Better place to do the boot service notification removal

This commit is contained in:
Sylvain Berfini 2019-03-07 16:41:47 +01:00
parent d6a417171a
commit 076c4a7c31
2 changed files with 2 additions and 2 deletions

View file

@ -175,6 +175,8 @@ public class LinphoneActivity extends LinphoneGenericActivity
// This must be done before calling super.onCreate().
super.onCreate(savedInstanceState);
LinphoneService.instance().removeForegroundServiceNotificationIfPossible();
if (getResources().getBoolean(R.bool.orientation_portrait_only)) {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}

View file

@ -68,8 +68,6 @@ public class LinphoneLauncherActivity extends Activity {
classToStart = LinphoneActivity.class;
}
LinphoneService.instance().removeForegroundServiceNotificationIfPossible();
mHandler.postDelayed(
new Runnable() {
@Override