Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-android
Commits
f7a6b84b
Commit
f7a6b84b
authored
Aug 13, 2020
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
account: cache username
Change-Id: Ieea171bd1084ca04fb7d4f161ad67827c5ecfcf1
parent
911b1c87
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ring-android/libringclient/src/main/java/cx/ring/model/Account.java
+6
-3
6 additions, 3 deletions
...id/libringclient/src/main/java/cx/ring/model/Account.java
with
6 additions
and
3 deletions
ring-android/libringclient/src/main/java/cx/ring/model/Account.java
+
6
−
3
View file @
f7a6b84b
...
...
@@ -58,6 +58,8 @@ public class Account {
private
AccountConfig
mVolatileDetails
;
private
AccountConfig
mDetails
;
private
String
mUsername
;
private
final
ArrayList
<
AccountCredentials
>
credentialsDetails
=
new
ArrayList
<>();
private
Map
<
String
,
String
>
devices
=
new
HashMap
<>();
private
final
Map
<
String
,
CallContact
>
mContacts
=
new
HashMap
<>();
...
...
@@ -128,7 +130,7 @@ public class Account {
final
List
<
Map
<
String
,
String
>>
credentials
,
final
Map
<
String
,
String
>
volDetails
)
{
accountID
=
bAccountID
;
m
Details
=
new
AccountConfig
(
details
);
set
Details
(
details
);
mVolatileDetails
=
new
AccountConfig
(
volDetails
);
setCredentials
(
credentials
);
}
...
...
@@ -371,7 +373,8 @@ public class Account {
}
public
void
setDetails
(
Map
<
String
,
String
>
details
)
{
this
.
mDetails
=
new
AccountConfig
(
details
);
mDetails
=
new
AccountConfig
(
details
);
mUsername
=
mDetails
.
get
(
ConfigKey
.
ACCOUNT_USERNAME
);
}
public
void
setDetail
(
ConfigKey
key
,
String
val
)
{
...
...
@@ -395,7 +398,7 @@ public class Account {
}
public
String
getUsername
()
{
return
m
Details
.
get
(
ConfigKey
.
ACCOUNT_USERNAME
)
;
return
m
Username
;
}
public
String
getDisplayname
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment