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
3ffd3912
Commit
3ffd3912
authored
May 29, 2013
by
Alexander Ivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move chat viewer option menu creation to fragment.
parent
41cbecc5
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
270 additions
and
237 deletions
+270
-237
ChatViewer.java
src/com/xabber/android/ui/ChatViewer.java
+2
-237
ChatViewerFragment.java
src/com/xabber/android/ui/ChatViewerFragment.java
+260
-0
ChatViewerAdapter.java
src/com/xabber/android/ui/adapter/ChatViewerAdapter.java
+8
-0
No files found.
src/com/xabber/android/ui/ChatViewer.java
View file @
3ffd3912
This diff is collapsed.
Click to expand it.
src/com/xabber/android/ui/ChatViewerFragment.java
View file @
3ffd3912
This diff is collapsed.
Click to expand it.
src/com/xabber/android/ui/adapter/ChatViewerAdapter.java
View file @
3ffd3912
...
@@ -18,6 +18,7 @@ import java.util.ArrayList;
...
@@ -18,6 +18,7 @@ import java.util.ArrayList;
import
java.util.Collection
;
import
java.util.Collection
;
import
android.support.v4.app.FragmentActivity
;
import
android.support.v4.app.FragmentActivity
;
import
android.view.Menu
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.widget.BaseAdapter
;
import
android.widget.BaseAdapter
;
...
@@ -120,6 +121,13 @@ public class ChatViewerAdapter extends BaseAdapter implements SaveStateAdapter,
...
@@ -120,6 +121,13 @@ public class ChatViewerAdapter extends BaseAdapter implements SaveStateAdapter,
((
ChatViewerFragment
)
view
.
getTag
()).
onChatChange
(
incomingMessage
);
((
ChatViewerFragment
)
view
.
getTag
()).
onChatChange
(
incomingMessage
);
}
}
/**
* Must be called on changes in chat (message sent, received, etc.).
*/
public
void
onPrepareOptionsMenu
(
View
view
,
Menu
menu
)
{
((
ChatViewerFragment
)
view
.
getTag
()).
onPrepareOptionsMenu
(
menu
);
}
@Override
@Override
public
void
onChange
()
{
public
void
onChange
()
{
activeChats
=
new
ArrayList
<
AbstractChat
>(
MessageManager
.
getInstance
()
activeChats
=
new
ArrayList
<
AbstractChat
>(
MessageManager
.
getInstance
()
...
...
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