Skip to content

Instantly share code, notes, and snippets.

@sl4v
Created June 25, 2017 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sl4v/b97006e75ab79f150f6399475fecbf76 to your computer and use it in GitHub Desktop.
Save sl4v/b97006e75ab79f150f6399475fecbf76 to your computer and use it in GitHub Desktop.
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