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

Commit 554259fe authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android Git Automerger
Browse files

am 9eabf916: am f6f7f1d2: Low disk space string change, surface state.

* commit '9eabf916':
  Low disk space string change, surface state.
parents b8151ecd 9eabf916
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -378,4 +378,7 @@ interface IPackageManager {

    void setPermissionEnforced(String permission, boolean enforced);
    boolean isPermissionEnforced(String permission);

    /** Reflects current DeviceStorageMonitorService state */
    boolean isStorageLow();
}
+2 −4
Original line number Diff line number Diff line
@@ -2705,11 +2705,9 @@
    <string name="editTextMenuTitle">Text actions</string>

    <!-- If the device is getting low on internal storage, a notification is shown to the user.  This is the title of that notification. -->
    <string name="low_internal_storage_view_title">Low on space</string>
    <string name="low_internal_storage_view_title">Storage space running out</string>
    <!-- If the device is getting low on internal storage, a notification is shown to the user.  This is the message of that notification. -->
    <string name="low_internal_storage_view_text" product="tablet">Tablet storage space is getting low.</string>
    <!-- If the device is getting low on internal storage, a notification is shown to the user.  This is the message of that notification. -->
    <string name="low_internal_storage_view_text" product="default">Phone storage space is getting low.</string>
    <string name="low_internal_storage_view_text">Some system functions may not work</string>

    <!-- Preference framework strings. -->
    <string name="ok">OK</string>
+11 −0
Original line number Diff line number Diff line
@@ -9448,4 +9448,15 @@ public class PackageManagerService extends IPackageManager.Stub {
            return true;
        }
    }

    public boolean isStorageLow() {
        final long token = Binder.clearCallingIdentity();
        try {
            final DeviceStorageMonitorService dsm = (DeviceStorageMonitorService) ServiceManager
                    .getService(DeviceStorageMonitorService.SERVICE);
            return dsm.isMemoryLow();
        } finally {
            Binder.restoreCallingIdentity(token);
        }
    }
}