mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
The 'Back' button works in the welcome-screen as expected.
This commit is contained in:
@@ -75,8 +75,9 @@ public class WelcomeActivity extends Activity implements NotificationCenter.Noti
|
||||
Theme.loadRecources(this);
|
||||
requestWindowFeature(Window.FEATURE_NO_TITLE);
|
||||
|
||||
NotificationCenter.getInstance().addObserver(this, NotificationCenter.imexEnded);
|
||||
NotificationCenter.getInstance().addObserver(this, NotificationCenter.imexProgress);
|
||||
NotificationCenter.getInstance().addObserver(this, NotificationCenter.imexEnded);
|
||||
NotificationCenter.getInstance().addObserver(this, NotificationCenter.configureEnded);
|
||||
|
||||
Bundle extras = getIntent().getExtras();
|
||||
if( extras != null && extras.getBoolean("com.b44t.ui.IntroActivity.isAbout") ) {
|
||||
@@ -123,7 +124,6 @@ public class WelcomeActivity extends Activity implements NotificationCenter.Noti
|
||||
Intent intent2 = new Intent(WelcomeActivity.this, LaunchActivity.class);
|
||||
intent2.putExtra("fromIntro", true);
|
||||
startActivity(intent2);
|
||||
finish();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -148,8 +148,9 @@ public class WelcomeActivity extends Activity implements NotificationCenter.Noti
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
super.onDestroy();
|
||||
NotificationCenter.getInstance().removeObserver(this, NotificationCenter.imexEnded);
|
||||
NotificationCenter.getInstance().removeObserver(this, NotificationCenter.imexProgress);
|
||||
NotificationCenter.getInstance().removeObserver(this, NotificationCenter.imexEnded);
|
||||
NotificationCenter.getInstance().removeObserver(this, NotificationCenter.configureEnded);
|
||||
}
|
||||
|
||||
private class IntroAdapter extends PagerAdapter {
|
||||
@@ -262,7 +263,7 @@ public class WelcomeActivity extends Activity implements NotificationCenter.Noti
|
||||
}
|
||||
|
||||
|
||||
/* Specials for importing
|
||||
/* Specials for importing and configuration
|
||||
**********************************************************************************************/
|
||||
|
||||
@Override
|
||||
@@ -381,5 +382,9 @@ public class WelcomeActivity extends Activity implements NotificationCenter.Noti
|
||||
.show();
|
||||
}
|
||||
}
|
||||
else if(id == NotificationCenter.configureEnded ) {
|
||||
// no need to start a new activitiy, this is done in SettingsAccountActivity(), just close self
|
||||
finish();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user