Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9f275d3 authored by Svetoslav's avatar Svetoslav Committed by Android (Google) Code Review
Browse files

Merge "Print preview disappearing on screen off/on." into lmp-dev

parents 915a666c d724a401
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -311,6 +311,14 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat
        setState(STATE_CONFIGURING);
    }

    @Override
    public void onResume() {
        super.onResume();
        if (mState != STATE_INITIALIZING && mCurrentPrinter != null) {
            mPrinterRegistry.setTrackedPrinter(mCurrentPrinter.getId());
        }
    }

    @Override
    public void onPause() {
        PrintSpoolerService spooler = mSpoolerProvider.getSpooler();
@@ -347,6 +355,7 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat
        }

        mPrinterAvailabilityDetector.cancel();
        mPrinterRegistry.setTrackedPrinter(null);

        super.onPause();
    }