Created
June 25, 2017 09:05
-
-
Save sl4v/b97006e75ab79f150f6399475fecbf76 to your computer and use it in GitHub Desktop.
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
public void onReceive(Context paramContext, Intent paramIntent) | |
{ | |
Log.i(a, "onReceive: action=" + paramIntent.getAction()); | |
if (!paramIntent.getAction().equals("com.tm.ctf.trendgacha.GET_GACHA")) { | |
return; | |
} | |
paramIntent = paramIntent.getExtras(); | |
if (paramIntent != null) {} | |
for (int i = Integer.valueOf(paramIntent.getString("TryLoop", "1")).intValue();; i = 1) | |
{ | |
int j = 0; | |
while (j < i) | |
{ | |
d.b(paramContext.getApplicationContext()); | |
int k = d.a(paramContext.getApplicationContext()); | |
paramIntent = GachaAPI.getGacha(k); | |
int m = paramIntent[0]; | |
char c1 = (char)paramIntent[1]; | |
d.a(paramContext.getApplicationContext(), m, c1); | |
int n = d.b(paramContext.getApplicationContext(), m, c1); | |
Log.i(a, "TrialCount: " + k + ", Order: " + m + ", Gacha: " + c1 + ", Count: " + n); | |
paramIntent = c.iterator(); | |
while (paramIntent.hasNext()) { | |
((b)paramIntent.next()).b_(); | |
} | |
Toast.makeText(paramContext, "Got \"" + m + "-" + c1 + "\" !", 0).show(); | |
if (k < 10) { | |
Toast.makeText(paramContext, "Check History!", 0).show(); | |
} | |
j += 1; | |
} | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment