Skip to content

Instantly share code, notes, and snippets.

@BramYeh
Last active August 9, 2018 14:13
Show Gist options
  • Save BramYeh/3cae4f01c0442f067d0eec2928525924 to your computer and use it in GitHub Desktop.
Save BramYeh/3cae4f01c0442f067d0eec2928525924 to your computer and use it in GitHub Desktop.
Obfuscated Code of YouTubeBaseActivity at YoutubeAndroidPlayerApi-v1.2.2.jar
package com.google.android.youtube.player;
public class YouTubeBaseActivity extends Activity {
private YouTubeBaseActivity.a a;
private YouTubePlayerView b;
private Bundle d;
public YouTubeBaseActivity() {
}
final b a() {
return this.a;
}
protected void onCreate(Bundle var1) {
super.onCreate(var1);
this.a = new YouTubeBaseActivity.a((byte)0);
this.d = var1 != null ? var1.getBundle("YouTubeBaseActivity.KEY_PLAYER_VIEW_STATE") : null;
}
protected void onStart() {
super.onStart();
if (this.b != null) {
this.b.a();
}
}
protected void onResume() {
super.onResume();
if (this.b != null) {
this.b.b();
}
}
protected void onPause() {
if (this.b != null) {
this.b.c();
}
super.onPause();
}
protected void onSaveInstanceState(Bundle var1) {
super.onSaveInstanceState(var1);
Bundle var2 = this.b != null ? this.b.e() : this.d;
var1.putBundle("YouTubeBaseActivity.KEY_PLAYER_VIEW_STATE", var2);
}
protected void onStop() {
if (this.b != null) {
this.b.d();
}
super.onStop();
}
protected void onDestroy() {
if (this.b != null) {
this.b.b(this.isFinishing());
}
super.onDestroy();
}
private final class a implements b {
....
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment