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:
parent
34bf4866db
commit
16d3dc672e
@ -427,7 +427,7 @@ package cyanogenmod.externalviews {
|
||||
|
||||
protected abstract class KeyguardExternalViewProviderService.Provider {
|
||||
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 void onAttach();
|
||||
method protected abstract void onBouncerShowing(boolean);
|
||||
|
@ -175,9 +175,7 @@ public class KeyguardExternalView extends View implements ViewTreeObserver.OnPre
|
||||
|
||||
@Override
|
||||
public void collapseNotificationPanel() throws RemoteException {
|
||||
if (mCallback != null) {
|
||||
mCallback.collapseNotificationPanel();
|
||||
}
|
||||
/* collapseNotificationPanel is deprecated so do nothing */
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -476,7 +474,6 @@ public class KeyguardExternalView extends View implements ViewTreeObserver.OnPre
|
||||
public interface KeyguardExternalViewCallbacks {
|
||||
boolean requestDismiss();
|
||||
boolean requestDismissAndStartActivity(Intent intent);
|
||||
void collapseNotificationPanel();
|
||||
void providerDied();
|
||||
void slideLockscreenIn();
|
||||
}
|
||||
|
@ -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
|
||||
* sliding down from the status bar.
|
||||
* 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() {
|
||||
mImpl.collapseNotificationPanel();
|
||||
/* do nothing */
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -427,7 +427,7 @@ package cyanogenmod.externalviews {
|
||||
|
||||
protected abstract class KeyguardExternalViewProviderService.Provider {
|
||||
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 void onAttach();
|
||||
method protected abstract void onBouncerShowing(boolean);
|
||||
|
Loading…
Reference in New Issue
Block a user