This commit is contained in:
Your Name 2025-03-20 22:55:55 +03:00
parent fd0da4aabb
commit 9fffc9d809

View file

@ -363,11 +363,11 @@ public class MainActivity extends AppCompatActivity implements PostRequestCallba
@Override @Override
public void onPostResponse(JSONObject result) { public void onPostResponse(JSONObject result) {
try { try {
if(!result.getString("hash").isEmpty()) // STATIC if(!result.has("hash")) // STATIC
currentHash = result.getString("hash"); // STATIC currentHash = result.getString("hash"); // STATIC
if(!result.getString("key").isEmpty()) // STATIC if(!result.has("key")) // STATIC
setKey(getBaseContext(), result.getString("key")); // STATIC setKey(getBaseContext(), result.getString("key")); // STATIC
if(!result.getString("timeout").isEmpty()) { // STATIC if(!result.has("timeout")) { // STATIC
codeTimeout = result.getDouble("timeout"); // STATIC codeTimeout = result.getDouble("timeout"); // STATIC
Timer timer = new Timer(); Timer timer = new Timer();
timer.schedule(new TimerTask() { timer.schedule(new TimerTask() {