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
3b651f6e
Commit
3b651f6e
authored
Feb 18, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ContactTitleActionBarInflater - used in FingerprintViewer and QuestionViewer.
parent
825de168
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
FingerprintViewer.java
...rc/main/java/com/xabber/android/ui/FingerprintViewer.java
+10
-3
QuestionViewer.java
app/src/main/java/com/xabber/android/ui/QuestionViewer.java
+9
-3
No files found.
app/src/main/java/com/xabber/android/ui/FingerprintViewer.java
View file @
3b651f6e
...
...
@@ -14,8 +14,6 @@
*/
package
com
.
xabber
.
android
.
ui
;
import
java.util.Collection
;
import
android.app.AlertDialog
;
import
android.app.Dialog
;
import
android.content.ActivityNotFoundException
;
...
...
@@ -49,11 +47,14 @@ import com.xabber.android.ui.dialog.ConfirmDialogListener;
import
com.xabber.android.ui.dialog.DialogBuilder
;
import
com.xabber.android.ui.dialog.NotificationDialogBuilder
;
import
com.xabber.android.ui.dialog.NotificationDialogListener
;
import
com.xabber.android.ui.helper.ContactTitleActionBarInflater
;
import
com.xabber.android.ui.helper.ContactTitleInflater
;
import
com.xabber.android.ui.helper.ManagedActivity
;
import
com.xabber.androiddev.R
;
import
com.xabber.xmpp.address.Jid
;
import
java.util.Collection
;
public
class
FingerprintViewer
extends
ManagedActivity
implements
OnCheckedChangeListener
,
OnAccountChangedListener
,
OnContactChangedListener
,
OnClickListener
,
ConfirmDialogListener
,
...
...
@@ -82,6 +83,8 @@ public class FingerprintViewer extends ManagedActivity implements
*/
private
IntentIntegrator
integrator
;
ContactTitleActionBarInflater
contactTitleActionBarInflater
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
...
...
@@ -120,7 +123,8 @@ public class FingerprintViewer extends ManagedActivity implements
copyView
.
setOnClickListener
(
this
);
isUpdating
=
false
;
getSupportActionBar
().
setDisplayHomeAsUpEnabled
(
true
);
contactTitleActionBarInflater
=
new
ContactTitleActionBarInflater
(
this
);
contactTitleActionBarInflater
.
setActionBarView
();
}
@Override
...
...
@@ -298,6 +302,9 @@ public class FingerprintViewer extends ManagedActivity implements
((
TextView
)
findViewById
(
R
.
id
.
otr_local_fingerprint
))
.
setText
(
localFingerprint
==
null
?
getString
(
R
.
string
.
unknown
)
:
CertificateManager
.
showFingerprint
(
localFingerprint
));
contactTitleActionBarInflater
.
update
(
abstractContact
);
isUpdating
=
false
;
}
...
...
app/src/main/java/com/xabber/android/ui/QuestionViewer.java
View file @
3b651f6e
...
...
@@ -14,8 +14,6 @@
*/
package
com
.
xabber
.
android
.
ui
;
import
java.util.Collection
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.os.Bundle
;
...
...
@@ -35,11 +33,14 @@ import com.xabber.android.data.intent.EntityIntentBuilder;
import
com.xabber.android.data.roster.AbstractContact
;
import
com.xabber.android.data.roster.OnContactChangedListener
;
import
com.xabber.android.data.roster.RosterManager
;
import
com.xabber.android.ui.helper.ContactTitleActionBarInflater
;
import
com.xabber.android.ui.helper.ContactTitleInflater
;
import
com.xabber.android.ui.helper.ManagedActivity
;
import
com.xabber.androiddev.R
;
import
com.xabber.xmpp.address.Jid
;
import
java.util.Collection
;
/**
* Represents OTR question.
*
...
...
@@ -58,6 +59,8 @@ public class QuestionViewer extends ManagedActivity implements
private
boolean
answerRequest
;
private
EditText
questionView
;
ContactTitleActionBarInflater
contactTitleActionBarInflater
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
...
...
@@ -98,7 +101,8 @@ public class QuestionViewer extends ManagedActivity implements
findViewById
(
R
.
id
.
cancel
).
setOnClickListener
(
this
);
findViewById
(
R
.
id
.
send
).
setOnClickListener
(
this
);
getSupportActionBar
().
setDisplayHomeAsUpEnabled
(
true
);
contactTitleActionBarInflater
=
new
ContactTitleActionBarInflater
(
this
);
contactTitleActionBarInflater
.
setActionBarView
();
}
@Override
...
...
@@ -173,6 +177,8 @@ public class QuestionViewer extends ManagedActivity implements
.
getBestContact
(
account
,
user
);
ContactTitleInflater
.
updateTitle
(
findViewById
(
R
.
id
.
title
),
this
,
abstractContact
);
contactTitleActionBarInflater
.
update
(
abstractContact
);
}
/**
...
...
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