fix(YouTube - Description components): Expand video descriptions requires longer wait time

This commit is contained in:
inotia00 2025-04-01 19:11:45 +09:00
parent 783e366242
commit bbf863c630

View File

@ -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);
} }