Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xabber-android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
xabber-android
Commits
641cc02b
Commit
641cc02b
authored
Apr 15, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Empty statuses do not saved.
parent
79fd3de0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
AccountManager.java
.../java/com/xabber/android/data/account/AccountManager.java
+4
-1
StatusTable.java
...ain/java/com/xabber/android/data/account/StatusTable.java
+0
-2
No files found.
app/src/main/java/com/xabber/android/data/account/AccountManager.java
View file @
641cc02b
...
@@ -857,7 +857,10 @@ public class AccountManager implements OnLoadListener, OnWipeListener {
...
@@ -857,7 +857,10 @@ public class AccountManager implements OnLoadListener, OnWipeListener {
* @param statusText
* @param statusText
*/
*/
public
void
setStatus
(
String
account
,
StatusMode
statusMode
,
String
statusText
)
{
public
void
setStatus
(
String
account
,
StatusMode
statusMode
,
String
statusText
)
{
if
(
statusText
!=
null
&&
!
statusText
.
trim
().
isEmpty
())
{
addSavedStatus
(
statusMode
,
statusText
);
addSavedStatus
(
statusMode
,
statusText
);
}
AccountItem
accountItem
=
getAccount
(
account
);
AccountItem
accountItem
=
getAccount
(
account
);
setStatus
(
accountItem
,
statusMode
,
statusText
);
setStatus
(
accountItem
,
statusMode
,
statusText
);
try
{
try
{
...
...
app/src/main/java/com/xabber/android/data/account/StatusTable.java
View file @
641cc02b
...
@@ -118,8 +118,6 @@ class StatusTable extends AbstractTable {
...
@@ -118,8 +118,6 @@ class StatusTable extends AbstractTable {
}
}
void
write
(
StatusMode
statusMode
,
String
statusText
)
{
void
write
(
StatusMode
statusMode
,
String
statusText
)
{
if
(
statusText
==
null
)
statusText
=
""
;
synchronized
(
writeLock
)
{
synchronized
(
writeLock
)
{
if
(
writeStatement
==
null
)
{
if
(
writeStatement
==
null
)
{
SQLiteDatabase
db
=
databaseManager
.
getWritableDatabase
();
SQLiteDatabase
db
=
databaseManager
.
getWritableDatabase
();
...
...
Write
Preview
Markdown
is supported
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