mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
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.
|
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
|
||||||
|
|
||||||
|
@ -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.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user