Dream settings: list items back to constant height
Expanding/collapsing items removed, settings icon shown on right with divider if applicable. New "Start" action on the action bar to start dreaming. This is no longer in preview/test mode, but a call to .dream(). Bug: 7010260 Change-Id: Ia1d8b9a70218dcc598bf62befbf545f572bbc6b1
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
|
||||
package com.android.settings;
|
||||
|
||||
import static android.provider.Settings.Secure.SCREENSAVER_ENABLED;
|
||||
import static android.provider.Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK;
|
||||
import static android.provider.Settings.Secure.SCREENSAVER_ACTIVATE_ON_SLEEP;
|
||||
import static android.provider.Settings.Secure.SCREENSAVER_ENABLED;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
@@ -183,6 +183,17 @@ public class DreamBackend {
|
||||
}
|
||||
}
|
||||
|
||||
public void startDreaming() {
|
||||
logd("startDreaming()");
|
||||
if (mDreamManager == null)
|
||||
return;
|
||||
try {
|
||||
mDreamManager.dream();
|
||||
} catch (RemoteException e) {
|
||||
Log.w(TAG, "Failed to dream", e);
|
||||
}
|
||||
}
|
||||
|
||||
private static ComponentName getDreamComponentName(ResolveInfo resolveInfo) {
|
||||
if (resolveInfo == null || resolveInfo.serviceInfo == null)
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user