Better place to do the boot service notification removal
This commit is contained in:
parent
d6a417171a
commit
076c4a7c31
2 changed files with 2 additions and 2 deletions
|
@ -175,6 +175,8 @@ public class LinphoneActivity extends LinphoneGenericActivity
|
||||||
// This must be done before calling super.onCreate().
|
// This must be done before calling super.onCreate().
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
LinphoneService.instance().removeForegroundServiceNotificationIfPossible();
|
||||||
|
|
||||||
if (getResources().getBoolean(R.bool.orientation_portrait_only)) {
|
if (getResources().getBoolean(R.bool.orientation_portrait_only)) {
|
||||||
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
|
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,8 +68,6 @@ public class LinphoneLauncherActivity extends Activity {
|
||||||
classToStart = LinphoneActivity.class;
|
classToStart = LinphoneActivity.class;
|
||||||
}
|
}
|
||||||
|
|
||||||
LinphoneService.instance().removeForegroundServiceNotificationIfPossible();
|
|
||||||
|
|
||||||
mHandler.postDelayed(
|
mHandler.postDelayed(
|
||||||
new Runnable() {
|
new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue