1
0
mirror of https://github.com/etesync/android synced 2025-02-02 19:01:06 +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); account = getIntent().getExtras().getParcelable(EXTRA_ACCOUNT);
info = (CollectionInfo) getIntent().getExtras().getSerializable(EXTRA_COLLECTION_INFO); info = (CollectionInfo) getIntent().getExtras().getSerializable(EXTRA_COLLECTION_INFO);
getSupportFragmentManager().beginTransaction() if (savedInstanceState == null) {
.add(R.id.list_entries_container, ListEntriesFragment.newInstance(info)) getSupportFragmentManager().beginTransaction()
.commit(); .add(R.id.list_entries_container, ListEntriesFragment.newInstance(info))
.commit();
}
final TextView stats = (TextView) findViewById(R.id.stats); final TextView stats = (TextView) findViewById(R.id.stats);