Guest User

Untitled

a guest
Jan 13th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.06 KB | None | 0 0
  1. Index: D:/My Documents/workspace/trickster-mod/trunk/src/com/bigeyes0x0/trickstermod/tools/BackupRestoreKernel.java
  2. ===================================================================
  3. --- D:/My Documents/workspace/trickster-mod/trunk/src/com/bigeyes0x0/trickstermod/tools/BackupRestoreKernel.java    (revision 341)
  4. +++ D:/My Documents/workspace/trickster-mod/trunk/src/com/bigeyes0x0/trickstermod/tools/BackupRestoreKernel.java    (working copy)
  5. @@ -155,15 +155,14 @@
  6.  
  7.     private AlertDialog mDialogLocation;
  8.     private AlertDialog mDialogBackup;
  9. -
  10.     private AlertDialog mDialogRestore;
  11.  
  12. -   private Button mBtnLocation;
  13. -   private Button mBtnBackup;
  14. -   private Button mBtnRestore;
  15. +   private static Button mBtnLocation;
  16. +   private static Button mBtnBackup;
  17. +   private static Button mBtnRestore;
  18. +   private static boolean mBusy = false;
  19.  
  20.     private Listener mListener = new Listener();
  21. -   private boolean mBusy = false;
  22.  
  23.     public BackupRestoreKernel(Context context) {
  24.         this(context, null);
  25. @@ -245,7 +244,7 @@
  26.  
  27.         Bundle bundle = savedState.getSavedBundle();
  28.         mBusy = bundle.getBoolean(BUSY_STATE);
  29. -       Logcat.e("mBusy = " + mBusy);
  30. +       Logcat.e("mBusy after = " + mBusy);
  31.         setGuiBusyState(mBusy);
  32.  
  33.         if (bundle.getBoolean(DIALOG_LOCATION_STATUS)) {
  34. @@ -271,6 +270,7 @@
  35.     protected Parcelable onSaveInstanceState() {
  36.         Parcelable superState = super.onSaveInstanceState();
  37.         Bundle bundle = new Bundle();
  38. +       Logcat.e("mBusy before = " + mBusy);
  39.         bundle.putBoolean(BUSY_STATE, mBusy);
  40.  
  41.         if (mDialogLocation != null && mDialogLocation.isShowing()) {
  42. @@ -349,7 +349,7 @@
  43.     @Override
  44.     public void setPostExecute(Bundle result) {
  45.         mBusy = false;
  46. -       setGuiBusyState(false);
  47. +       setGuiBusyState(mBusy);
  48.         String s = result.getString(RESULT);
  49.         if (s != null && !s.isEmpty()) {
  50.             ActivityTricksterMod.showToast(s, Toast.LENGTH_LONG);
  51. @@ -366,7 +366,7 @@
  52.     @Override
  53.     public void setPreExcute() {
  54.         mBusy = true;
  55. -       setGuiBusyState(true);
  56. +       setGuiBusyState(mBusy);
  57.     }
  58.  
  59.     private AlertDialog showEditTextDialog(int titleResID, CharSequence location) {
Add Comment
Please, Sign In to add comment