LLS: Deprecate collapseNotificationPanel [1/2]

collapseNotificationPanel is no longer applicable with the updated
UX so deprecate it and document that it will essentially be a no-op

Change-Id: I285bb48e3a9ffec8d554f880edf17e5105c94018
TICKET: CYNGNOS-2392
This commit is contained in:
d34d 2016-04-07 12:59:28 -07:00
parent 34bf4866db
commit 16d3dc672e
4 changed files with 7 additions and 7 deletions

View File

@ -427,7 +427,7 @@ package cyanogenmod.externalviews {
protected abstract class KeyguardExternalViewProviderService.Provider { protected abstract class KeyguardExternalViewProviderService.Provider {
ctor protected KeyguardExternalViewProviderService.Provider(android.os.Bundle); ctor protected KeyguardExternalViewProviderService.Provider(android.os.Bundle);
method protected final void collapseNotificationPanel(); method protected final deprecated void collapseNotificationPanel();
method protected android.os.Bundle getOptions(); method protected android.os.Bundle getOptions();
method protected void onAttach(); method protected void onAttach();
method protected abstract void onBouncerShowing(boolean); method protected abstract void onBouncerShowing(boolean);

View File

@ -175,9 +175,7 @@ public class KeyguardExternalView extends View implements ViewTreeObserver.OnPre
@Override @Override
public void collapseNotificationPanel() throws RemoteException { public void collapseNotificationPanel() throws RemoteException {
if (mCallback != null) { /* collapseNotificationPanel is deprecated so do nothing */
mCallback.collapseNotificationPanel();
}
} }
@Override @Override
@ -476,7 +474,6 @@ public class KeyguardExternalView extends View implements ViewTreeObserver.OnPre
public interface KeyguardExternalViewCallbacks { public interface KeyguardExternalViewCallbacks {
boolean requestDismiss(); boolean requestDismiss();
boolean requestDismissAndStartActivity(Intent intent); boolean requestDismissAndStartActivity(Intent intent);
void collapseNotificationPanel();
void providerDied(); void providerDied();
void slideLockscreenIn(); void slideLockscreenIn();
} }

View File

@ -595,9 +595,12 @@ public abstract class KeyguardExternalViewProviderService extends Service {
* attention. The user will still be able to bring the notifications back into view by * attention. The user will still be able to bring the notifications back into view by
* sliding down from the status bar. * sliding down from the status bar.
* Calling this method has no effect for non-interactive components.</p> * Calling this method has no effect for non-interactive components.</p>
* @deprecated As of SDK version {@link cyanogenmod.os.Build.CM_VERSION_CODES#ELDERBERRY}
* this does nothing.
*/ */
@Deprecated
protected final void collapseNotificationPanel() { protected final void collapseNotificationPanel() {
mImpl.collapseNotificationPanel(); /* do nothing */
} }
/** /**

View File

@ -427,7 +427,7 @@ package cyanogenmod.externalviews {
protected abstract class KeyguardExternalViewProviderService.Provider { protected abstract class KeyguardExternalViewProviderService.Provider {
ctor protected KeyguardExternalViewProviderService.Provider(android.os.Bundle); ctor protected KeyguardExternalViewProviderService.Provider(android.os.Bundle);
method protected final void collapseNotificationPanel(); method protected final deprecated void collapseNotificationPanel();
method protected android.os.Bundle getOptions(); method protected android.os.Bundle getOptions();
method protected void onAttach(); method protected void onAttach();
method protected abstract void onBouncerShowing(boolean); method protected abstract void onBouncerShowing(boolean);