File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -23818,8 +23818,9 @@ package android.view {
2381823818 method public final void dispatchOnGlobalLayout();
2381923819 method public final boolean dispatchOnPreDraw();
2382023820 method public boolean isAlive();
23821- method public void removeGlobalOnLayoutListener(android.view.ViewTreeObserver.OnGlobalLayoutListener);
23821+ method public deprecated void removeGlobalOnLayoutListener(android.view.ViewTreeObserver.OnGlobalLayoutListener);
2382223822 method public void removeOnGlobalFocusChangeListener(android.view.ViewTreeObserver.OnGlobalFocusChangeListener);
23823+ method public void removeOnGlobalLayoutListener(android.view.ViewTreeObserver.OnGlobalLayoutListener);
2382323824 method public void removeOnPreDrawListener(android.view.ViewTreeObserver.OnPreDrawListener);
2382423825 method public void removeOnScrollChangedListener(android.view.ViewTreeObserver.OnScrollChangedListener);
2382523826 method public void removeOnTouchModeChangeListener(android.view.ViewTreeObserver.OnTouchModeChangeListener);
Original file line number Diff line number Diff line change @@ -185,7 +185,8 @@ void reset() {
185185 mTouchableInsets = TOUCHABLE_INSETS_FRAME ;
186186 }
187187
188- @ Override public boolean equals (Object o ) {
188+ @ Override
189+ public boolean equals (Object o ) {
189190 try {
190191 if (o == null ) {
191192 return false ;
@@ -357,10 +358,26 @@ public void addOnGlobalLayoutListener(OnGlobalLayoutListener listener) {
357358 * @param victim The callback to remove
358359 *
359360 * @throws IllegalStateException If {@link #isAlive()} returns false
361+ *
362+ * @deprecated Use #removeOnGlobalLayoutListener instead
360363 *
361364 * @see #addOnGlobalLayoutListener(OnGlobalLayoutListener)
362365 */
366+ @ Deprecated
363367 public void removeGlobalOnLayoutListener (OnGlobalLayoutListener victim ) {
368+ removeOnGlobalLayoutListener (victim );
369+ }
370+
371+ /**
372+ * Remove a previously installed global layout callback
373+ *
374+ * @param victim The callback to remove
375+ *
376+ * @throws IllegalStateException If {@link #isAlive()} returns false
377+ *
378+ * @see #addOnGlobalLayoutListener(OnGlobalLayoutListener)
379+ */
380+ public void removeOnGlobalLayoutListener (OnGlobalLayoutListener victim ) {
364381 checkIsAlive ();
365382 if (mOnGlobalLayoutListeners == null ) {
366383 return ;
You can’t perform that action at this time.
0 commit comments