create a new QrShowFragment every time

This commit is contained in:
adbenitez
2026-05-13 18:59:34 +02:00
parent 774add2380
commit 267caf9b03
@@ -232,7 +232,11 @@ public class QrActivity extends BaseActionBarActivity implements View.OnClickLis
@NonNull
@Override
public Fragment createFragment(int position) {
return position == TAB_SHOW ? qrShowFragment : new QrScanFragment();
if (position == TAB_SHOW) {
qrShowFragment = new QrShowFragment(this);
return qrShowFragment;
}
return new QrScanFragment();
}
@Override