mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 21:33:53 +01:00
Fixes invalid authorname in explore (#4054)
* Fixes #3341, #4018 * Defined two feild author and user in Media and used them at the corresponding places Minor bug fixes -displaying userName in uploadedBy. -modified HTML parsing in getArtist. -Replaced creator with author. * Fixes #3341, #4018 * Defined two feild author and user in Media and used them at the corresponding places Minor bug fixes -displaying userName in uploadedBy. -modified HTML parsing in getArtist. -Replaced creator with author.
This commit is contained in:
parent
f1b40728b2
commit
d720750ab4
17 changed files with 56 additions and 61 deletions
|
|
@ -28,7 +28,6 @@ public class SessionManager {
|
|||
private final Context context;
|
||||
private Account currentAccount; // Unlike a savings account... ;-)
|
||||
private JsonKvStore defaultKvStore;
|
||||
private static final String KEY_RAWUSERNAME = "rawusername";
|
||||
|
||||
@Inject
|
||||
public SessionManager(Context context,
|
||||
|
|
@ -99,17 +98,6 @@ public class SessionManager {
|
|||
return account == null ? null : account.name;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
private String getRawUserName() {
|
||||
Account account = getCurrentAccount();
|
||||
return account == null ? null : accountManager().getUserData(account, KEY_RAWUSERNAME);
|
||||
}
|
||||
|
||||
public String getAuthorName(){
|
||||
return getRawUserName() == null ? getUserName() : getRawUserName();
|
||||
}
|
||||
|
||||
|
||||
@Nullable
|
||||
public String getPassword() {
|
||||
Account account = getCurrentAccount();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue