Modify IdenticonBase to use Briar's hashing and to use byte[] instead of String

This commit is contained in:
str4d
2016-01-21 02:36:21 +00:00
parent d645c435fd
commit dfb9222ccd
5 changed files with 51 additions and 17 deletions

View File

@@ -49,11 +49,15 @@ abstract public class IdenticonView extends View {
}
}
public void show(String input) {
public void show(byte[] input) {
getDelegate().show(input);
invalidate();
}
public void show(String input) {
show(input.getBytes());
}
public void show(int input) {
show(String.valueOf(input));
}
@@ -71,7 +75,7 @@ abstract public class IdenticonView extends View {
}
public void show(byte input) {
show(String.valueOf(input));
show(new byte[] { input });
}
public void show(char input) {