test
This commit is contained in:
parent
fd0da4aabb
commit
9fffc9d809
1 changed files with 3 additions and 3 deletions
|
@ -363,11 +363,11 @@ public class MainActivity extends AppCompatActivity implements PostRequestCallba
|
|||
@Override
|
||||
public void onPostResponse(JSONObject result) {
|
||||
try {
|
||||
if(!result.getString("hash").isEmpty()) // STATIC
|
||||
if(!result.has("hash")) // STATIC
|
||||
currentHash = result.getString("hash"); // STATIC
|
||||
if(!result.getString("key").isEmpty()) // STATIC
|
||||
if(!result.has("key")) // STATIC
|
||||
setKey(getBaseContext(), result.getString("key")); // STATIC
|
||||
if(!result.getString("timeout").isEmpty()) { // STATIC
|
||||
if(!result.has("timeout")) { // STATIC
|
||||
codeTimeout = result.getDouble("timeout"); // STATIC
|
||||
Timer timer = new Timer();
|
||||
timer.schedule(new TimerTask() {
|
||||
|
|
Loading…
Add table
Reference in a new issue