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
df2dd03e
Commit
df2dd03e
authored
Feb 26, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ChatViewer: chat selection improved.
parent
5d1b1009
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
ChatViewer.java
app/src/main/java/com/xabber/android/ui/ChatViewer.java
+2
-2
ChatViewerAdapter.java
...java/com/xabber/android/ui/adapter/ChatViewerAdapter.java
+0
-4
No files found.
app/src/main/java/com/xabber/android/ui/ChatViewer.java
View file @
df2dd03e
...
@@ -453,8 +453,8 @@ public class ChatViewer extends ManagedActivity implements OnChatChangedListener
...
@@ -453,8 +453,8 @@ public class ChatViewer extends ManagedActivity implements OnChatChangedListener
}
}
private
void
selectPage
(
int
position
,
boolean
smoothScroll
)
{
private
void
selectPage
(
int
position
,
boolean
smoothScroll
)
{
viewPager
.
setCurrentItem
(
position
,
smoothScroll
);
onPageSelected
(
position
);
onPageSelected
(
position
);
viewPager
.
setCurrentItem
(
position
,
smoothScroll
);
}
}
private
static
String
getAccount
(
Intent
intent
)
{
private
static
String
getAccount
(
Intent
intent
)
{
...
@@ -730,7 +730,7 @@ public class ChatViewer extends ManagedActivity implements OnChatChangedListener
...
@@ -730,7 +730,7 @@ public class ChatViewer extends ManagedActivity implements OnChatChangedListener
}
}
public
void
selectRecentChatsPage
()
{
public
void
selectRecentChatsPage
()
{
viewPager
.
setCurrentItem
(
chatViewerAdapter
.
getRecentChatsPosition
(),
tru
e
);
selectPage
(
null
,
null
,
fals
e
);
}
}
public
ChatViewerAdapter
getChatViewerAdapter
()
{
public
ChatViewerAdapter
getChatViewerAdapter
()
{
...
...
app/src/main/java/com/xabber/android/ui/adapter/ChatViewerAdapter.java
View file @
df2dd03e
...
@@ -134,10 +134,6 @@ public class ChatViewerAdapter extends FragmentStatePagerAdapter {
...
@@ -134,10 +134,6 @@ public class ChatViewerAdapter extends FragmentStatePagerAdapter {
return
realPosition
+
OFFSET
;
return
realPosition
+
OFFSET
;
}
}
public
int
getRecentChatsPosition
()
{
return
OFFSET
;
}
public
AbstractChat
getChatByPageNumber
(
int
virtualPosition
)
{
public
AbstractChat
getChatByPageNumber
(
int
virtualPosition
)
{
int
realPosition
=
getRealPagePosition
(
virtualPosition
);
int
realPosition
=
getRealPagePosition
(
virtualPosition
);
...
...
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