mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-04-29 22:24:31 +02:00
fix(YouTube - Description components): Expand video descriptions
requires longer wait time
This commit is contained in:
parent
783e366242
commit
bbf863c630
@ -183,8 +183,8 @@ public class PlayerPatch {
|
|||||||
// The type of descriptionView can be either ViewGroup or TextView. (A/B tests)
|
// The type of descriptionView can be either ViewGroup or TextView. (A/B tests)
|
||||||
// If the type of descriptionView is TextView, longer delay is required.
|
// If the type of descriptionView is TextView, longer delay is required.
|
||||||
final long delayMillis = descriptionView instanceof TextView
|
final long delayMillis = descriptionView instanceof TextView
|
||||||
? 500
|
? 750
|
||||||
: 100;
|
: 200;
|
||||||
|
|
||||||
Utils.runOnMainThreadDelayed(() -> Utils.clickView(descriptionView), delayMillis);
|
Utils.runOnMainThreadDelayed(() -> Utils.clickView(descriptionView), delayMillis);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user