Fix tablet multiple wizard windows stacked
This commit is contained in:
parent
b33f2fc103
commit
1c7fd4e917
3 changed files with 3 additions and 4 deletions
|
@ -68,7 +68,7 @@
|
|||
|
||||
<activity android:name="org.linphone.LinphoneActivity"
|
||||
android:theme="@style/NoTitle"
|
||||
android:screenOrientation="nosensor"
|
||||
android:screenOrientation="behind"
|
||||
android:launchMode="singleTask">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
|
|
@ -59,7 +59,6 @@ public class LinphoneLauncherActivity extends Activity {
|
|||
|
||||
mHandler = new Handler();
|
||||
|
||||
|
||||
if (getResources().getBoolean(R.bool.enable_push_id)) {
|
||||
Compatibility.initPushNotificationService(this);
|
||||
}
|
||||
|
|
|
@ -109,13 +109,13 @@ public class SetupActivity extends FragmentActivity implements OnClickListener {
|
|||
int id = v.getId();
|
||||
|
||||
if (id == R.id.setup_cancel) {
|
||||
LinphonePreferences.instance().firstLaunchSuccessful();
|
||||
if (getResources().getBoolean(R.bool.setup_cancel_move_to_back)) {
|
||||
moveTaskToBack(true);
|
||||
} else {
|
||||
setResult(Activity.RESULT_CANCELED);
|
||||
finish();
|
||||
}
|
||||
LinphonePreferences.instance().firstLaunchSuccessful();
|
||||
} else if (id == R.id.setup_next) {
|
||||
if (firstFragment == SetupFragmentsEnum.LINPHONE_LOGIN) {
|
||||
LinphoneLoginFragment linphoneFragment = (LinphoneLoginFragment) fragment;
|
||||
|
@ -140,13 +140,13 @@ public class SetupActivity extends FragmentActivity implements OnClickListener {
|
|||
@Override
|
||||
public void onBackPressed() {
|
||||
if (currentFragment == firstFragment) {
|
||||
LinphonePreferences.instance().firstLaunchSuccessful();
|
||||
if (getResources().getBoolean(R.bool.setup_cancel_move_to_back)) {
|
||||
moveTaskToBack(true);
|
||||
} else {
|
||||
setResult(Activity.RESULT_CANCELED);
|
||||
finish();
|
||||
}
|
||||
LinphonePreferences.instance().firstLaunchSuccessful();
|
||||
}
|
||||
if (currentFragment == SetupFragmentsEnum.MENU) {
|
||||
WelcomeFragment fragment = new WelcomeFragment();
|
||||
|
|
Loading…
Reference in a new issue