Remove PlayerMessage.setHandler(Handler)
Use `setLooper(Looper)` instead. PiperOrigin-RevId: 636840566
This commit is contained in:
parent
4fb2255eb9
commit
cfd29e04f3
@ -201,6 +201,8 @@
|
||||
the equivalent method on each `XXXDataSource.Factory` instead.
|
||||
* Remove `OkHttpDataSource` constructors and `OkHttpDataSourceFactory`.
|
||||
Use `OkHttpDataSource.Factory` instead.
|
||||
* Remove `PlayerMessage.setHandler(Handler)`. Use `setLooper(Looper)`
|
||||
instead.
|
||||
|
||||
## 1.4
|
||||
|
||||
|
@ -15,7 +15,6 @@
|
||||
*/
|
||||
package androidx.media3.exoplayer;
|
||||
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.media3.common.C;
|
||||
@ -158,15 +157,6 @@ public final class PlayerMessage {
|
||||
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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user