Skip to content

Commit

Permalink
Fix initial data in automation fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Matejčík committed Mar 26, 2017
1 parent fd192da commit 0b28622
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,
.equalTo("gateId", mGateId)
.findAll();

if (realmResults.isEmpty()) {
if (realmResults.isEmpty() && mPageIndex == 0) {
mRealm.executeTransaction(new AutomationDemoDatabaseSeed());
}

Expand Down

0 comments on commit 0b28622

Please sign in to comment.