You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: app/src/main/java/com/koraniar/freebitcoin/MainActivity.java
+13-19
Original file line number
Diff line number
Diff line change
@@ -107,11 +107,12 @@ public void run() {
107
107
notificationEnabled = true;
108
108
inttime = (Integer.parseInt(info) + 1);
109
109
Toast.makeText(mContext, "We call you on " + Integer.toString(time) + " minutes", Toast.LENGTH_SHORT).show();
110
-
_notificationService.showClaimBtcNotification(mContext, time * 60000, 101, "com.koraniar.freebitcoin.MainActivity");
110
+
_notificationService.showClaimBtcNotification(mContext, time * 60000, 101, "Free BTC available", "Tap to claim it!", "com.koraniar.freebitcoin.MainActivity");
111
111
}
112
112
break;
113
113
caseRequestType.RollButtonPressed:
114
114
notificationEnabled = false;
115
+
_notificationService.showClaimBtcNotification(mContext, 61 * 60000, 101, "Free BTC", "This is a recordatory to play at freebitco.in", "com.koraniar.freebitcoin.MainActivity");
115
116
(newHandler()).postDelayed(newRunnable() {
116
117
@Override
117
118
publicvoidrun() {
@@ -123,19 +124,6 @@ public void run() {
123
124
});
124
125
}
125
126
}, 2000);
126
-
(newHandler()).postDelayed(newRunnable() {
127
-
@Override
128
-
publicvoidrun() {
129
-
if (!notificationEnabled) {
130
-
mainWebView.post(newRunnable() {
131
-
@Override
132
-
publicvoidrun() {
133
-
mainWebView.loadUrl(JavaScript.FreeGetCountDown);
134
-
}
135
-
});
136
-
}
137
-
}
138
-
}, 4000);
139
127
break;
140
128
default:
141
129
Toast.makeText(mContext, "Request Code is not valid", Toast.LENGTH_SHORT).show();
@@ -197,7 +185,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
197
185
// as you specify a parent activity in AndroidManifest.xml.
198
186
intid = item.getItemId();
199
187
200
-
//noinspection SimplifiableIfStatement
201
188
if (id == R.id.action_settings) {
202
189
returntrue;
203
190
} elseif (id == R.id.action_reload_page) {
@@ -211,13 +198,20 @@ public boolean onOptionsItemSelected(MenuItem item) {
0 commit comments