Remove PlayerMessage.setHandler(Handler)

Use `setLooper(Looper)` instead.

PiperOrigin-RevId: 636840566
This commit is contained in:
ibaker 2024-05-24 02:11:01 -07:00 committed by Copybara-Service
parent 4fb2255eb9
commit cfd29e04f3
2 changed files with 2 additions and 10 deletions

View File

@ -201,6 +201,8 @@
the equivalent method on each `XXXDataSource.Factory` instead. the equivalent method on each `XXXDataSource.Factory` instead.
* Remove `OkHttpDataSource` constructors and `OkHttpDataSourceFactory`. * Remove `OkHttpDataSource` constructors and `OkHttpDataSourceFactory`.
Use `OkHttpDataSource.Factory` instead. Use `OkHttpDataSource.Factory` instead.
* Remove `PlayerMessage.setHandler(Handler)`. Use `setLooper(Looper)`
instead.
## 1.4 ## 1.4

View File

@ -15,7 +15,6 @@
*/ */
package androidx.media3.exoplayer; package androidx.media3.exoplayer;
import android.os.Handler;
import android.os.Looper; import android.os.Looper;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import androidx.media3.common.C; import androidx.media3.common.C;
@ -158,15 +157,6 @@ public final class PlayerMessage {
return payload; return payload;
} }
/**
* @deprecated Use {@link #setLooper(Looper)} instead.
*/
@CanIgnoreReturnValue
@Deprecated
public PlayerMessage setHandler(Handler handler) {
return setLooper(handler.getLooper());
}
/** /**
* Sets the {@link Looper} the message is delivered on. * Sets the {@link Looper} the message is delivered on.
* *