You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
ActivityManager: add a stub for MemoryInfo
This commit is contained in:
@@ -12,4 +12,13 @@ public class ActivityManager {
|
|||||||
|
|
||||||
public boolean isLowRamDevice() {return false;}
|
public boolean isLowRamDevice() {return false;}
|
||||||
|
|
||||||
|
public static class MemoryInfo {
|
||||||
|
/* For now, just always report there's 10GB free RAM */
|
||||||
|
public long availMem = 10000;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void getMemoryInfo (MemoryInfo outInfo)
|
||||||
|
{
|
||||||
|
outInfo = new MemoryInfo();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user