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
5815eebb
Commit
5815eebb
authored
May 28, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ContactViewer "up" button missing fixed.
parent
22b85505
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
ContactEditor.java
app/src/main/java/com/xabber/android/ui/ContactEditor.java
+0
-11
ContactViewer.java
app/src/main/java/com/xabber/android/ui/ContactViewer.java
+11
-0
No files found.
app/src/main/java/com/xabber/android/ui/ContactEditor.java
View file @
5815eebb
...
...
@@ -5,12 +5,10 @@ import android.content.Context;
import
android.content.DialogInterface
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.support.v4.app.NavUtils
;
import
android.support.v7.widget.Toolbar
;
import
android.text.InputType
;
import
android.view.Menu
;
import
android.view.MenuItem
;
import
android.view.View
;
import
android.widget.EditText
;
import
com.xabber.android.R
;
...
...
@@ -39,15 +37,6 @@ public class ContactEditor extends ContactViewer implements Toolbar.OnMenuItemCl
toolbar
.
inflateMenu
(
R
.
menu
.
contact_viewer
);
toolbar
.
setOnMenuItemClickListener
(
this
);
}
toolbar
.
setNavigationIcon
(
R
.
drawable
.
ic_arrow_left_white_24dp
);
toolbar
.
setNavigationOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
NavUtils
.
navigateUpFromSameTask
(
ContactEditor
.
this
);
}
});
}
@Override
...
...
app/src/main/java/com/xabber/android/ui/ContactViewer.java
View file @
5815eebb
...
...
@@ -18,6 +18,8 @@ import android.content.Context;
import
android.content.Intent
;
import
android.net.Uri
;
import
android.os.Bundle
;
import
android.support.v4.app.NavUtils
;
import
android.support.v7.widget.Toolbar
;
import
android.view.View
;
import
android.widget.TextView
;
...
...
@@ -117,6 +119,15 @@ public class ContactViewer extends ManagedActivity implements
contactTitleView
.
findViewById
(
R
.
id
.
status_icon
).
setVisibility
(
View
.
GONE
);
contactTitleView
.
findViewById
(
R
.
id
.
status_text
).
setVisibility
(
View
.
GONE
);
contactNameView
=
(
TextView
)
contactTitleView
.
findViewById
(
R
.
id
.
name
);
Toolbar
toolbar
=
contactTitleExpandableToolbarInflater
.
getToolbar
();
toolbar
.
setNavigationIcon
(
R
.
drawable
.
ic_arrow_left_white_24dp
);
toolbar
.
setNavigationOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
NavUtils
.
navigateUpFromSameTask
(
ContactViewer
.
this
);
}
});
}
@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