make restore tokens shown in hex.

Since they are android ids, it is much easier to use them as hex, since we can just copy then into android inspector and learn more about the restore set.
This commit is contained in:
Christian Sonntag
2009-08-07 11:16:05 -07:00
parent 02d34e78f4
commit 77095d49f2

View File

@@ -268,7 +268,7 @@ public final class Bmgr {
private void printRestoreSets(RestoreSet[] sets) {
for (RestoreSet s : sets) {
System.out.println(" " + s.token + " : " + s.name);
System.out.println(" " + Long.toHexString(s.token) + " : " + s.name);
}
}
@@ -294,7 +294,7 @@ public final class Bmgr {
private void doRestore() {
long token;
try {
token = Long.parseLong(nextArg());
token = Long.parseLong(nextArg(), 16);
} catch (NumberFormatException e) {
showUsage();
return;