Commit 1b8c4a0b authored by Grigory Fedorov's avatar Grigory Fedorov

Contact subscription request crash fixed.

parent 6028af34
...@@ -17,6 +17,7 @@ package com.xabber.android.ui; ...@@ -17,6 +17,7 @@ package com.xabber.android.ui;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.support.v4.app.NavUtils;
import android.support.v7.widget.Toolbar; import android.support.v7.widget.Toolbar;
import android.view.View; import android.view.View;
import android.widget.Button; import android.widget.Button;
...@@ -35,7 +36,7 @@ import com.xabber.android.ui.helper.AccountPainter; ...@@ -35,7 +36,7 @@ import com.xabber.android.ui.helper.AccountPainter;
import com.xabber.android.ui.helper.BarPainter; import com.xabber.android.ui.helper.BarPainter;
import com.xabber.android.ui.helper.SingleActivity; 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 account;
private String user; private String user;
...@@ -71,10 +72,14 @@ public class ContactSubscription extends SingleActivity implements View.OnClickL ...@@ -71,10 +72,14 @@ public class ContactSubscription extends SingleActivity implements View.OnClickL
setContentView(R.layout.contact_subscription); setContentView(R.layout.contact_subscription);
Toolbar toolbar = (Toolbar) findViewById(R.id.top_toolbar); Toolbar toolbar = (Toolbar) findViewById(R.id.top_toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
toolbar.setTitle(getString(R.string.subscription_request_message)); 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 barPainter = new BarPainter(this, toolbar);
barPainter.updateWithAccountName(account); barPainter.updateWithAccountName(account);
...@@ -142,4 +147,8 @@ public class ContactSubscription extends SingleActivity implements View.OnClickL ...@@ -142,4 +147,8 @@ public class ContactSubscription extends SingleActivity implements View.OnClickL
finish(); finish();
} }
@Override
public void onVCardReceived() {
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment