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
ebd53092
Commit
ebd53092
authored
Apr 02, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Account action buttons always shown (even for 1 account)
parent
6fca5cf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
AccountActionButtonsAdapter.java
...abber/android/ui/adapter/AccountActionButtonsAdapter.java
+0
-9
No files found.
app/src/main/java/com/xabber/android/ui/adapter/AccountActionButtonsAdapter.java
View file @
ebd53092
...
...
@@ -64,11 +64,6 @@ public class AccountActionButtonsAdapter implements UpdatableAdapter {
accounts
.
clear
();
accounts
.
addAll
(
AccountManager
.
getInstance
().
getAccounts
());
if
(
accounts
.
size
()
<=
1
)
{
linearLayout
.
removeAllViews
();
return
;
}
Collections
.
sort
(
accounts
);
final
int
size
=
accounts
.
size
();
final
LayoutInflater
inflater
=
(
LayoutInflater
)
activity
...
...
@@ -88,10 +83,6 @@ public class AccountActionButtonsAdapter implements UpdatableAdapter {
@Override
public
void
onChange
()
{
if
(
accounts
.
size
()
<=
1
)
{
return
;
}
for
(
int
index
=
0
;
index
<
accounts
.
size
();
index
++)
{
View
view
=
linearLayout
.
getChildAt
(
index
);
...
...
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