mirror of
https://github.com/etesync/android
synced 2025-01-23 14:10:54 +00:00
View collection activity: only create fragment on first load.
This commit is contained in:
parent
231684e0d4
commit
24b170a170
@ -61,9 +61,11 @@ public class ViewCollectionActivity extends AppCompatActivity {
|
||||
account = getIntent().getExtras().getParcelable(EXTRA_ACCOUNT);
|
||||
info = (CollectionInfo) getIntent().getExtras().getSerializable(EXTRA_COLLECTION_INFO);
|
||||
|
||||
getSupportFragmentManager().beginTransaction()
|
||||
.add(R.id.list_entries_container, ListEntriesFragment.newInstance(info))
|
||||
.commit();
|
||||
if (savedInstanceState == null) {
|
||||
getSupportFragmentManager().beginTransaction()
|
||||
.add(R.id.list_entries_container, ListEntriesFragment.newInstance(info))
|
||||
.commit();
|
||||
}
|
||||
|
||||
|
||||
final TextView stats = (TextView) findViewById(R.id.stats);
|
||||
|
Loading…
Reference in New Issue
Block a user