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
338e7cfa
Commit
338e7cfa
authored
11 years ago
by
Alexandre Lision
Browse files
Options
Downloads
Patches
Plain Diff
account edition: password is correctly set.
parent
39aee334
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
AndroidManifest.xml
+2
-2
2 additions, 2 deletions
AndroidManifest.xml
src/org/sflphone/fragments/GeneralAccountFragment.java
+9
-4
9 additions, 4 deletions
src/org/sflphone/fragments/GeneralAccountFragment.java
with
11 additions
and
6 deletions
AndroidManifest.xml
+
2
−
2
View file @
338e7cfa
...
@@ -33,8 +33,8 @@ as that of the covered work.
...
@@ -33,8 +33,8 @@ as that of the covered work.
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"org.sflphone"
package=
"org.sflphone"
android:installLocation=
"auto"
android:installLocation=
"auto"
android:versionCode=
"1
0
"
android:versionCode=
"1
1
"
android:versionName=
"1.2.3.1
5
"
>
android:versionName=
"1.2.3.1
6
"
>
<supports-screens
<supports-screens
android:anyDensity=
"true"
android:anyDensity=
"true"
...
...
This diff is collapsed.
Click to expand it.
src/org/sflphone/fragments/GeneralAccountFragment.java
+
9
−
4
View file @
338e7cfa
...
@@ -32,6 +32,7 @@ package org.sflphone.fragments;
...
@@ -32,6 +32,7 @@ package org.sflphone.fragments;
import
org.sflphone.R
;
import
org.sflphone.R
;
import
org.sflphone.account.AccountDetail
;
import
org.sflphone.account.AccountDetail
;
import
org.sflphone.account.AccountDetailBasic
;
import
org.sflphone.model.Account
;
import
org.sflphone.model.Account
;
import
org.sflphone.views.PasswordPreference
;
import
org.sflphone.views.PasswordPreference
;
...
@@ -134,19 +135,23 @@ public class GeneralAccountFragment extends PreferenceFragment {
...
@@ -134,19 +135,23 @@ public class GeneralAccountFragment extends PreferenceFragment {
Log
.
i
(
TAG
,
"Changing preference value:"
+
newValue
);
Log
.
i
(
TAG
,
"Changing preference value:"
+
newValue
);
if
(
preference
instanceof
CheckBoxPreference
)
{
if
(
preference
instanceof
CheckBoxPreference
)
{
mCallbacks
.
getAccount
().
getBasicDetails
().
setDetailString
(
preference
.
getKey
(),
((
Boolean
)
newValue
)
.
toString
());
mCallbacks
.
getAccount
().
getBasicDetails
().
setDetailString
(
preference
.
getKey
(),
newValue
.
toString
());
}
else
{
}
else
{
if
(
preference
instanceof
PasswordPreference
)
{
if
(
preference
instanceof
PasswordPreference
)
{
String
tmp
=
new
String
();
String
tmp
=
new
String
();
for
(
int
i
=
0
;
i
<
((
String
)
newValue
).
length
();
++
i
)
{
for
(
int
i
=
0
;
i
<
((
String
)
newValue
).
length
();
++
i
)
{
tmp
+=
"*"
;
tmp
+=
"*"
;
}
}
mCallbacks
.
getAccount
().
getCredentials
().
get
(
0
).
setDetailString
(
preference
.
getKey
(),
newValue
.
toString
());
preference
.
setSummary
(
tmp
);
preference
.
setSummary
(
tmp
);
}
else
}
else
if
(
preference
.
getKey
().
contentEquals
(
AccountDetailBasic
.
CONFIG_ACCOUNT_USERNAME
))
{
mCallbacks
.
getAccount
().
getCredentials
().
get
(
0
).
setDetailString
(
preference
.
getKey
(),
newValue
.
toString
());
preference
.
setSummary
((
CharSequence
)
newValue
);
}
else
{
preference
.
setSummary
((
CharSequence
)
newValue
);
preference
.
setSummary
((
CharSequence
)
newValue
);
}
mCallbacks
.
getAccount
().
getBasicDetails
().
setDetailString
(
preference
.
getKey
(),
((
CharSequence
)
newValue
)
.
toString
());
mCallbacks
.
getAccount
().
getBasicDetails
().
setDetailString
(
preference
.
getKey
(),
newValue
.
toString
());
}
}
mCallbacks
.
getAccount
().
notifyObservers
();
mCallbacks
.
getAccount
().
notifyObservers
();
return
true
;
return
true
;
...
...
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