mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
create a new QrShowFragment every time
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user