From ae25761188c7f16e257b3e00121e82fe964a9e46 Mon Sep 17 00:00:00 2001 From: Christopher Beckmann Date: Thu, 27 Feb 2020 12:40:50 +0100 Subject: [PATCH] Fixed crash when rotating the ResultActivity. --- .../ui/viewmodel/ResultViewModel.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 app/src/main/java/com/secuso/privacyFriendlyCodeScanner/qrscanner/ui/viewmodel/ResultViewModel.java diff --git a/app/src/main/java/com/secuso/privacyFriendlyCodeScanner/qrscanner/ui/viewmodel/ResultViewModel.java b/app/src/main/java/com/secuso/privacyFriendlyCodeScanner/qrscanner/ui/viewmodel/ResultViewModel.java new file mode 100644 index 00000000..c9fd0f65 --- /dev/null +++ b/app/src/main/java/com/secuso/privacyFriendlyCodeScanner/qrscanner/ui/viewmodel/ResultViewModel.java @@ -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; + +}