package com.tencent.smtt.sdk; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import com.tencent.tbs.video.interfaces.IUserStateChangedListener; import com.tencent.tbs.video.interfaces.a; class s { private static s e; u a = null; Context b; a c; IUserStateChangedListener d; private s(Context context) { this.b = context.getApplicationContext(); this.a = new u(this.b); } public static synchronized s a(Context context) { s sVar; synchronized (s.class) { if (e == null) { e = new s(context); } sVar = e; } return sVar; } public void a(int i, int i2, Intent intent) { a aVar = this.c; if (aVar != null) { aVar.a(i, i2, intent); } } /* access modifiers changed from: package-private */ public void a(Activity activity, int i) { this.a.a(activity, i); } public boolean a() { this.a.a(); return this.a.b(); } public boolean a(String str, Bundle bundle, a aVar) { if (bundle == null) { bundle = new Bundle(); } if (!TextUtils.isEmpty(str)) { bundle.putString("videoUrl", str); } if (aVar != null) { this.a.a(); if (!this.a.b()) { return false; } this.c = aVar; this.d = new IUserStateChangedListener() { /* class com.tencent.smtt.sdk.s.AnonymousClass1 */ @Override // com.tencent.tbs.video.interfaces.IUserStateChangedListener public void onUserStateChanged() { s.this.a.c(); } }; this.c.a(this.d); bundle.putInt("callMode", 3); } else { bundle.putInt("callMode", 1); } this.a.a(bundle, aVar == null ? null : this); return true; } }