diff options
author | Christopher Tate <ctate@google.com> | 2011-05-13 15:38:02 -0700 |
---|---|---|
committer | Christopher Tate <ctate@google.com> | 2011-05-13 15:38:02 -0700 |
commit | dc92c82b4180e8067f1acd00a7db7935afce00ff (patch) | |
tree | 4c108ce188aba5c0f2df9c8746fcabe981a47e64 /packages/BackupRestoreConfirmation/src | |
parent | 83a7cdc56539d00933c2e25999620cec94c524b6 (diff) | |
download | frameworks_base-dc92c82b4180e8067f1acd00a7db7935afce00ff.zip frameworks_base-dc92c82b4180e8067f1acd00a7db7935afce00ff.tar.gz frameworks_base-dc92c82b4180e8067f1acd00a7db7935afce00ff.tar.bz2 |
Full backup tweaks
* provide placeholder UI showing backup/restore start/stop/timeout
* don't kill the progress UI in mid stream
* tidy up the pax extended header data writing a little
Change-Id: Ife0cb78e3facb541d8327f1d5ca5fe77faa6cbca
Diffstat (limited to 'packages/BackupRestoreConfirmation/src')
-rw-r--r-- | packages/BackupRestoreConfirmation/src/com/android/backupconfirm/BackupRestoreConfirmation.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/BackupRestoreConfirmation/src/com/android/backupconfirm/BackupRestoreConfirmation.java b/packages/BackupRestoreConfirmation/src/com/android/backupconfirm/BackupRestoreConfirmation.java index 805b905..4b42067 100644 --- a/packages/BackupRestoreConfirmation/src/com/android/backupconfirm/BackupRestoreConfirmation.java +++ b/packages/BackupRestoreConfirmation/src/com/android/backupconfirm/BackupRestoreConfirmation.java @@ -24,7 +24,6 @@ import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.os.Handler; -import android.os.Looper; import android.os.Message; import android.os.RemoteException; import android.os.ServiceManager; @@ -77,7 +76,7 @@ public class BackupRestoreConfirmation extends Activity { public void handleMessage(Message msg) { switch (msg.what) { case MSG_START_BACKUP: { - Toast.makeText(mContext, "!!! Backup starting !!!", Toast.LENGTH_LONG); + Toast.makeText(mContext, "!!! Backup starting !!!", Toast.LENGTH_LONG).show(); } break; @@ -88,12 +87,13 @@ public class BackupRestoreConfirmation extends Activity { break; case MSG_END_BACKUP: { - Toast.makeText(mContext, "!!! Backup ended !!!", Toast.LENGTH_SHORT); + Toast.makeText(mContext, "!!! Backup ended !!!", Toast.LENGTH_SHORT).show(); + finish(); } break; case MSG_START_RESTORE: { - Toast.makeText(mContext, "!!! Restore starting !!!", Toast.LENGTH_LONG); + Toast.makeText(mContext, "!!! Restore starting !!!", Toast.LENGTH_LONG).show(); } break; @@ -102,11 +102,13 @@ public class BackupRestoreConfirmation extends Activity { break; case MSG_END_RESTORE: { - Toast.makeText(mContext, "!!! Restore ended !!!", Toast.LENGTH_SHORT); + Toast.makeText(mContext, "!!! Restore ended !!!", Toast.LENGTH_SHORT).show(); + finish(); } break; case MSG_TIMEOUT: { + Toast.makeText(mContext, "!!! TIMED OUT !!!", Toast.LENGTH_LONG).show(); } break; } |