Skip to content

Commit e270656

Browse files
committed
Remove serialization of current org
The org id is stored as a shared preference which is sufficient.
1 parent a701daf commit e270656

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

app/src/main/java/com/github/mobile/ui/user/HomeActivity.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ protected void onCreate(Bundle savedInstanceState) {
100100
getSupportLoaderManager().initLoader(0, null, this);
101101

102102
User org = (User) getIntent().getSerializableExtra(EXTRA_USER);
103-
if (org == null && savedInstanceState != null)
104-
org = (User) savedInstanceState.getSerializable(EXTRA_USER);
105103
if (org != null) {
106104
isDefaultUser = AccountUtils.isUser(this, org);
107105
setOrg(org);
@@ -161,14 +159,6 @@ protected void onResume() {
161159
reloadOrgs();
162160
}
163161

164-
@Override
165-
protected void onSaveInstanceState(Bundle outState) {
166-
super.onSaveInstanceState(outState);
167-
168-
if (org != null)
169-
outState.putSerializable(EXTRA_USER, org);
170-
}
171-
172162
private void configureActionBar() {
173163
ActionBar actionBar = getSupportActionBar();
174164
actionBar.setDisplayShowHomeEnabled(false);

0 commit comments

Comments
 (0)