summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorAaron Whyte <awhyte@google.com>2014-05-09 14:43:07 -0700
committerAaron Whyte <awhyte@google.com>2014-05-12 17:20:02 -0700
commit3f3e3e87e2a8f899d896c0c54441a37a23fdba3b (patch)
treedd3088845614319224eb07a1451f0919e963b1e5 /policy
parent8028e4a063b49aadfb08fab012d2388a7466a9a1 (diff)
downloadframeworks_base-3f3e3e87e2a8f899d896c0c54441a37a23fdba3b.zip
frameworks_base-3f3e3e87e2a8f899d896c0c54441a37a23fdba3b.tar.gz
frameworks_base-3f3e3e87e2a8f899d896c0c54441a37a23fdba3b.tar.bz2
Disallow FEATURE_INDETERMINATE_PROGRESS for clockwork.
Make LauncherActivity CTS tests pass on clockwork. Bug: 14657859 Change-Id: I0a8641894b41058f53a5bf241763a9a0605244d1
Diffstat (limited to 'policy')
-rw-r--r--policy/src/com/android/internal/policy/impl/PhoneWindow.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindow.java b/policy/src/com/android/internal/policy/impl/PhoneWindow.java
index 78020e9..0961a33 100644
--- a/policy/src/com/android/internal/policy/impl/PhoneWindow.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindow.java
@@ -278,6 +278,11 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
throw new AndroidRuntimeException(
"You cannot combine swipe dismissal and the action bar.");
}
+
+ if (featureId == FEATURE_INDETERMINATE_PROGRESS &&
+ getContext().getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) {
+ throw new AndroidRuntimeException("You cannot use indeterminate progress on a watch.");
+ }
return super.requestFeature(featureId);
}