1
0
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:
Tom Hacohen 2017-03-23 20:20:15 +00:00
parent 231684e0d4
commit 24b170a170

View File

@ -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);