Last active
July 29, 2019 17:11
-
-
Save ewwink/7a37936083894fd8619f842a4477dbad to your computer and use it in GitHub Desktop.
Youtube Android APK Limit Bandwidth Usage by lowering max video quality
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package defpackage; | |
import android.content.Context; | |
/* renamed from: dns */ | |
public final class dns implements dju { | |
private final Context a; | |
private final dnr b; | |
public final /* synthetic */ Object c_() { | |
return Integer.valueOf(480); | |
} | |
public dns(Context context, dnr dnr) { | |
this.a = (Context) am.a((Object) context); | |
this.b = (dnr) am.a((Object) dnr); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package defpackage; | |
import android.content.Context; | |
/* renamed from: dns */ | |
public final class dns implements dju { | |
private final Context a; | |
private final dnr b; | |
public final /* synthetic */ Object c_() { | |
Object obj = 1; | |
if (!a.a(this.a, this.b)) { | |
return Integer.valueOf(480); | |
} | |
Object obj2; | |
Context context = this.a; | |
dnr dnr = this.b; | |
if (a.b(context, 1080) && dnr.c()) { | |
obj2 = 1; | |
} else { | |
obj2 = null; | |
} | |
if (obj2 == null) { | |
return Integer.valueOf(720); | |
} | |
context = this.a; | |
dnr = this.b; | |
if ((a.b(context, 1440) || a.e(1440)) && dnr.d()) { | |
obj2 = 1; | |
} else { | |
obj2 = null; | |
} | |
if (obj2 == null) { | |
return Integer.valueOf(1080); | |
} | |
context = this.a; | |
dnr = this.b; | |
if (!((a.b(context, 2160) || a.e(2160)) && dnr.e())) { | |
obj = null; | |
} | |
if (obj == null) { | |
return Integer.valueOf(1440); | |
} | |
return Integer.valueOf(2160); | |
} | |
public dns(Context context, dnr dnr) { | |
this.a = (Context) am.a((Object) context); | |
this.b = (dnr) am.a((Object) dnr); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment