Skip to content

Instantly share code, notes, and snippets.

View AlienAsRoger's full-sized avatar
:octocat:

Roger (Alex S) AlienAsRoger

:octocat:
View GitHub Profile
@AlienAsRoger
AlienAsRoger / Exo Player
Created August 10, 2018 17:54
Exo Player buffer issue under connnection:
08-10 09:05:54.607 D/TEST: updateProgressBar: playbackState = 3 playWhenReady = true
08-10 09:05:55.603 D/TEST: updateProgressBar: playbackState = 3 playWhenReady = true
08-10 09:05:56.600 D/TEST: updateProgressBar: playbackState = 3 playWhenReady = true
08-10 09:05:57.600 D/TEST: updateProgressBar: playbackState = 3 playWhenReady = true
08-10 09:05:58.602 D/TEST: updateProgressBar: playbackState = 3 playWhenReady = true
08-10 09:05:59.607 D/TEST: updateProgressBar: playbackState = 3 playWhenReady = true
08-10 09:06:00.601 D/TEST: updateProgressBar: playbackState = 3 playWhenReady = true
08-10 09:06:01.605 D/TEST: updateProgressBar: playbackState = 3 playWhenReady = true
08-10 09:06:02.604 D/TEST: updateProgressBar: playbackState = 3 playWhenReady = true
08-10 09:06:03.606 D/TEST: updateProgressBar: playbackState = 3 playWhenReady = true
@AlienAsRoger
AlienAsRoger / IMMLeaks.java
Created April 10, 2016 00:16 — forked from pyricau/IMMLeaks.java
"Fix" for InputMethodManager leaking the last focused view: https://code.google.com/p/android/issues/detail?id=171190
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.ContextWrapper;
import android.os.Bundle;
import android.os.Looper;
import android.os.MessageQueue;
import android.util.Log;
import android.view.View;
import android.view.ViewTreeObserver;
ID Code Name
---------------------------------------
2 US United States
3 CA Canada
4 AR Argentina
5 BE Belgium
9 AF Afghanistan
10 AL Albania
11 AD Andorra
12 AI Anguilla
@AlienAsRoger
AlienAsRoger / LessonProblemItem
Last active August 29, 2015 14:24
Lesson item object
"cm_lesson": {
"lesson_number": 1,
"author": "Jeremy Silman",
"name": "Botvinnik-Sorokin, USSR 1931",
"about": "Former World Cha",
"goal": 7,
"goal_commentary": "Gaining",
"goal_code": "positional_gain",
"difficulty": 6
},
java.lang.RuntimeException: Unable to resume activity {com.chess/com.chess.ui.activities.MainFragmentFaceActivity}: java.lang.IllegalStateException: DialogFragment can not be attached to a container view
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2653)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2681)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2151)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3590)
at android.app.ActivityThread.access$800(ActivityThread.java:140)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:177)
at android.app.ActivityThread.main(ActivityThread.java:4947)