leanback/src/main/java/androidx/leanback/widget/DetailsOverviewRow.java
final void addListener(Listener listener) {
        if (mListeners == null) {
            mListeners = new ArrayList<WeakReference<Listener>>();
        } else {
            for (int i = 0; i < mListeners.size();) {
                Listener l = mListeners.get(i).get();
                if (l == null) {
                    mListeners.remove(i);
                } else {
                    if (l == listener) {
                        return;
                    }
                    i++;
                }
            }
        }
        mListeners.add(new WeakReference<Listener>(listener));
    }
/**
     * Adds listener for the details page.
     */
Adds listener for the details page.
Adds listener for the details page .
final void addListener(Listener listener) {
        if (mListeners == null) {
            mListeners = new ArrayList<WeakReference<Listener>>();
        } else {
            for (int i = 0; i < mListeners.size();) {
                Listener l = mListeners.get(i).get();
                if (l == null) {
                    mListeners.remove(i);
                } else {
                    if (l == listener) {
                        return;
                    }
                    i++;
                }
            }
        }
        mListeners.add(new WeakReference<Listener>(listener));
    }
final void addListener ( Listener listener ) { if ( mListeners == null ) { mListeners = new ArrayList < WeakReference < Listener > > ( ) ; } else { for ( int i = 0 ; i < mListeners . size ( ) ; ) { Listener l = mListeners . get ( i ) . get ( ) ; if ( l == null ) { mListeners . remove ( i ) ; } else { if ( l == listener ) { return ; } i ++ ; } } } mListeners . add ( new WeakReference < Listener > ( listener ) ) ; }
Adds listener for the details page.
Adds listener for the details page .