Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
GmsCore
Commits
5eb04b44
Verified
Commit
5eb04b44
authored
Mar 18, 2021
by
Marvin W.
🐿
Browse files
Fix typo
parent
ff1f879a
Changes
2
Hide whitespace changes
Inline
Side-by-side
play-services-core/src/main/java/org/microg/gms/people/PeopleManager.java
View file @
5eb04b44
...
...
@@ -45,7 +45,7 @@ public class PeopleManager {
public
static
final
String
USERINFO_URL
=
"https://www.googleapis.com/oauth2/v1/userinfo"
;
public
static
final
String
REGEX_SEARCH_USER_PHOTO
=
"https?\\:\\/\\/lh([0-9]*)\\.googleusercontent\\.com/"
;
public
static
File
getOwnerAvat
e
rFile
(
Context
context
,
String
accountName
,
boolean
network
)
{
public
static
File
getOwnerAvat
a
rFile
(
Context
context
,
String
accountName
,
boolean
network
)
{
DatabaseHelper
databaseHelper
=
new
DatabaseHelper
(
context
);
Cursor
cursor
=
databaseHelper
.
getOwner
(
accountName
);
String
url
=
null
;
...
...
@@ -78,7 +78,7 @@ public class PeopleManager {
}
public
static
Bitmap
getOwnerAvatarBitmap
(
Context
context
,
String
accountName
,
boolean
network
)
{
File
avaterFile
=
getOwnerAvat
e
rFile
(
context
,
accountName
,
network
);
File
avaterFile
=
getOwnerAvat
a
rFile
(
context
,
accountName
,
network
);
if
(
avaterFile
==
null
)
return
null
;
return
BitmapFactory
.
decodeFile
(
avaterFile
.
getPath
());
}
...
...
play-services-core/src/main/java/org/microg/gms/people/PeopleServiceImpl.java
View file @
5eb04b44
...
...
@@ -127,7 +127,7 @@ public class PeopleServiceImpl extends IPeopleService.Stub {
extras
.
putBoolean
(
"rewindable"
,
false
);
extras
.
putInt
(
"width"
,
0
);
extras
.
putInt
(
"height"
,
0
);
File
avaterFile
=
PeopleManager
.
getOwnerAvat
e
rFile
(
context
,
account
,
true
);
File
avaterFile
=
PeopleManager
.
getOwnerAvat
a
rFile
(
context
,
account
,
true
);
try
{
ParcelFileDescriptor
fileDescriptor
=
null
;
if
(
avaterFile
!=
null
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment