File tree 1 file changed +3
-3
lines changed
app/src/main/java/com/github/mobile/util
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 25
25
import android .graphics .drawable .BitmapDrawable ;
26
26
import android .graphics .drawable .Drawable ;
27
27
import android .text .TextUtils ;
28
- import android .util .Base64 ;
29
28
import android .util .Log ;
30
29
import android .widget .ImageView ;
31
30
34
33
import com .github .mobile .R .drawable ;
35
34
import com .github .mobile .R .id ;
36
35
import com .github .mobile .core .search .SearchUser ;
36
+ import com .github .mobile .util .GravatarUtils ;
37
37
import com .google .inject .Inject ;
38
38
39
39
import java .io .File ;
@@ -151,8 +151,8 @@ private Bitmap decode(final File file) {
151
151
return BitmapFactory .decodeFile (file .getAbsolutePath (), options );
152
152
}
153
153
154
- private String getAvatarFilenameForUrl (String avatarUrl ) {
155
- return Base64 . encodeToString (avatarUrl . getBytes (), Base64 . NO_WRAP );
154
+ private String getAvatarFilenameForUrl (final String avatarUrl ) {
155
+ return GravatarUtils . getHash (avatarUrl );
156
156
}
157
157
158
158
/**
You can’t perform that action at this time.
0 commit comments