summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget/RemoteViews.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2012-05-10 14:44:38 -0700
committerAdam Cohen <adamcohen@google.com>2012-05-10 15:52:28 -0700
commit311c79c3e93589c6fc720fe6c58ed522af591376 (patch)
tree93e8fc58d8a36dfbf3e17222a34aa2933bf8c848 /core/java/android/widget/RemoteViews.java
parenta53de0629f3b94472c0f160f5bbe1090b020feab (diff)
downloadframeworks_base-311c79c3e93589c6fc720fe6c58ed522af591376.zip
frameworks_base-311c79c3e93589c6fc720fe6c58ed522af591376.tar.gz
frameworks_base-311c79c3e93589c6fc720fe6c58ed522af591376.tar.bz2
Cap widget bitmap usage by screen size (issue 6464700)
Change-Id: I04e16223861a88d40ad757afa086a0f92e84493b
Diffstat (limited to 'core/java/android/widget/RemoteViews.java')
-rw-r--r--core/java/android/widget/RemoteViews.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/widget/RemoteViews.java b/core/java/android/widget/RemoteViews.java
index 56c4bd8..51c957a 100644
--- a/core/java/android/widget/RemoteViews.java
+++ b/core/java/android/widget/RemoteViews.java
@@ -1445,7 +1445,8 @@ public class RemoteViews implements Parcelable, Filter {
/**
* Returns an estimate of the bitmap heap memory usage for this RemoteViews.
*/
- int estimateMemoryUsage() {
+ /** @hide */
+ public int estimateMemoryUsage() {
return mMemoryUsageCounter.getMemoryUsage();
}