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
d2aef422
Commit
d2aef422
authored
Mar 26, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Join conference screen uses action bar painting.
parent
5a4acebb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
MUCEditor.java
app/src/main/java/com/xabber/android/ui/MUCEditor.java
+12
-2
No files found.
app/src/main/java/com/xabber/android/ui/MUCEditor.java
View file @
d2aef422
...
...
@@ -39,6 +39,7 @@ import com.xabber.android.data.intent.EntityIntentBuilder;
import
com.xabber.android.data.message.MessageManager
;
import
com.xabber.android.data.notification.NotificationManager
;
import
com.xabber.android.ui.adapter.AccountChooseAdapter
;
import
com.xabber.android.ui.helper.ActionBarPainter
;
import
com.xabber.android.ui.helper.ManagedActivity
;
import
com.xabber.androiddev.R
;
...
...
@@ -65,6 +66,8 @@ public class MUCEditor extends ManagedActivity implements View.OnClickListener,
private
EditText
nickView
;
private
EditText
passwordView
;
private
ActionBarPainter
actionBarPainter
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
...
...
@@ -119,7 +122,12 @@ public class MUCEditor extends ManagedActivity implements View.OnClickListener,
if
(
accounts
.
size
()
==
1
)
account
=
accounts
.
iterator
().
next
();
}
actionBarPainter
=
new
ActionBarPainter
(
this
);
if
(
account
!=
null
)
{
actionBarPainter
.
updateWithAccountName
(
account
);
for
(
int
position
=
0
;
position
<
accountView
.
getCount
();
position
++)
if
(
account
.
equals
(
accountView
.
getItemAtPosition
(
position
)))
{
accountView
.
setSelection
(
position
);
...
...
@@ -129,6 +137,7 @@ public class MUCEditor extends ManagedActivity implements View.OnClickListener,
if
(
""
.
equals
(
nickView
.
getText
().
toString
()))
nickView
.
setText
(
getNickname
(((
String
)
accountView
.
getSelectedItem
())));
}
@Override
...
...
@@ -217,11 +226,12 @@ public class MUCEditor extends ManagedActivity implements View.OnClickListener,
if
(
selectedAccount
==
AdapterView
.
INVALID_POSITION
)
previous
=
""
;
else
previous
=
getNickname
((
String
)
accountView
.
getAdapter
().
getItem
(
selectedAccount
));
previous
=
getNickname
((
String
)
accountView
.
getAdapter
().
getItem
(
selectedAccount
));
if
(
current
.
equals
(
previous
))
nickView
.
setText
(
getNickname
((
String
)
accountView
.
getSelectedItem
()));
selectedAccount
=
accountView
.
getSelectedItemPosition
();
actionBarPainter
.
updateWithAccountName
((
String
)
accountView
.
getSelectedItem
());
}
@Override
...
...
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