Skip to content

Commit

Permalink
Fixed crash when rotating the ResultActivity.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamuno committed Feb 27, 2020
1 parent 8890b3e commit ae25761
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.secuso.privacyfriendlycodescanner.qrscanner.ui.viewmodel;

import android.arch.lifecycle.ViewModel;
import android.graphics.Bitmap;

import com.google.zxing.client.result.ParsedResult;
import com.journeyapps.barcodescanner.BarcodeResult;
import com.secuso.privacyfriendlycodescanner.qrscanner.database.HistoryItem;
import com.secuso.privacyfriendlycodescanner.qrscanner.ui.resultfragments.ResultFragment;

public class ResultViewModel extends ViewModel {

public BarcodeResult currentBarcodeResult = null;
public ResultFragment currentResultFragment = null;

public HistoryItem currentHistoryItem = null;
public ParsedResult mParsedResult = null;
public Bitmap mCodeImage = null;
public boolean mSavedToHistory = false;

}

0 comments on commit ae25761

Please sign in to comment.