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

Commit 66236db3 authored by Jeff Hamilton's avatar Jeff Hamilton Committed by Android Git Automerger
Browse files

am 1e2e2aea: am 4b330921: Don\'t crash when low storage is encountered pre-boot completion.

Merge commit '1e2e2aea' into kraken

* commit '1e2e2aea':
  Don't crash when low storage is encountered pre-boot completion.
parents fef42db9 1e2e2aea
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -280,7 +280,9 @@ class DeviceStorageMonitorService extends Binder {
        mTotalMemory = ((long)mDataFileStats.getBlockCount() *
                        mDataFileStats.getBlockSize())/100L;
        mStorageLowIntent = new Intent(Intent.ACTION_DEVICE_STORAGE_LOW);
        mStorageLowIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
        mStorageOkIntent = new Intent(Intent.ACTION_DEVICE_STORAGE_OK);
        mStorageOkIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
        checkMemory(true);
    }