|
@@ -3,6 +3,7 @@ package com.usai.redant.apexdrivers.setting;
|
|
|
import android.content.Context;
|
|
import android.content.Context;
|
|
|
import android.content.DialogInterface;
|
|
import android.content.DialogInterface;
|
|
|
import android.content.Intent;
|
|
import android.content.Intent;
|
|
|
|
|
+import android.os.Handler;
|
|
|
import android.support.v7.app.ActionBar;
|
|
import android.support.v7.app.ActionBar;
|
|
|
import android.support.v7.app.AlertDialog;
|
|
import android.support.v7.app.AlertDialog;
|
|
|
import android.support.v7.app.AppCompatActivity;
|
|
import android.support.v7.app.AppCompatActivity;
|
|
@@ -237,11 +238,6 @@ public class SettingActivity extends BasicActivity implements SettingAdapter.Set
|
|
|
if (file.exists() && file.isDirectory()) {
|
|
if (file.exists() && file.isDirectory()) {
|
|
|
file.delete();
|
|
file.delete();
|
|
|
}
|
|
}
|
|
|
- try {
|
|
|
|
|
- Thread.sleep(1000);
|
|
|
|
|
- } catch (Exception e) {
|
|
|
|
|
- e.printStackTrace();
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
@@ -249,8 +245,15 @@ public class SettingActivity extends BasicActivity implements SettingAdapter.Set
|
|
|
@Override
|
|
@Override
|
|
|
public void operationCompletion(Object object) {
|
|
public void operationCompletion(Object object) {
|
|
|
|
|
|
|
|
- model.setActive(false);
|
|
|
|
|
- Toast.makeText(mCtx,"Clean Success",Toast.LENGTH_LONG).show();
|
|
|
|
|
|
|
+ new Handler().postDelayed(new Runnable() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void run() {
|
|
|
|
|
+ model.setActive(false);
|
|
|
|
|
+ Toast.makeText(mCtx,"Clean Success",Toast.LENGTH_LONG).show();
|
|
|
|
|
+ }
|
|
|
|
|
+ },1000);
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
},null);
|
|
},null);
|