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
1b8c4a0b
Commit
1b8c4a0b
authored
Sep 04, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contact subscription request crash fixed.
parent
6028af34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
ContactSubscription.java
.../main/java/com/xabber/android/ui/ContactSubscription.java
+13
-4
No files found.
app/src/main/java/com/xabber/android/ui/ContactSubscription.java
View file @
1b8c4a0b
...
...
@@ -17,6 +17,7 @@ package com.xabber.android.ui;
import
android.content.Context
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.support.v4.app.NavUtils
;
import
android.support.v7.widget.Toolbar
;
import
android.view.View
;
import
android.widget.Button
;
...
...
@@ -35,7 +36,7 @@ import com.xabber.android.ui.helper.AccountPainter;
import
com.xabber.android.ui.helper.BarPainter
;
import
com.xabber.android.ui.helper.SingleActivity
;
public
class
ContactSubscription
extends
SingleActivity
implements
View
.
OnClickListener
{
public
class
ContactSubscription
extends
SingleActivity
implements
View
.
OnClickListener
,
ContactVcardViewerFragment
.
Listener
{
private
String
account
;
private
String
user
;
...
...
@@ -71,10 +72,14 @@ public class ContactSubscription extends SingleActivity implements View.OnClickL
setContentView
(
R
.
layout
.
contact_subscription
);
Toolbar
toolbar
=
(
Toolbar
)
findViewById
(
R
.
id
.
top_toolbar
);
setSupportActionBar
(
toolbar
);
getSupportActionBar
().
setDisplayHomeAsUpEnabled
(
true
);
toolbar
.
setTitle
(
getString
(
R
.
string
.
subscription_request_message
));
toolbar
.
setNavigationIcon
(
R
.
drawable
.
ic_clear_white_24dp
);
toolbar
.
setNavigationOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
finish
();
}
});
BarPainter
barPainter
=
new
BarPainter
(
this
,
toolbar
);
barPainter
.
updateWithAccountName
(
account
);
...
...
@@ -142,4 +147,8 @@ public class ContactSubscription extends SingleActivity implements View.OnClickL
finish
();
}
@Override
public
void
onVCardReceived
()
{
}
}
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