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
92d00b44
Commit
92d00b44
authored
Mar 06, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chat viewer debug behavior changed - wrong page selection cause chat closing.
parent
1e3997c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ChatViewer.java
app/src/main/java/com/xabber/android/ui/ChatViewer.java
+6
-6
No files found.
app/src/main/java/com/xabber/android/ui/ChatViewer.java
View file @
92d00b44
...
...
@@ -714,22 +714,22 @@ public class ChatViewer extends ManagedActivity implements OnChatChangedListener
if
(!(
currentFragment
instanceof
ChatViewerFragment
))
{
AlertDialog
.
Builder
builder
=
new
AlertDialog
.
Builder
(
this
);
builder
.
setTitle
(
"Debug message"
)
.
setMessage
(
"Recent chats selected, but contact chat expected.
Reselecting...
"
)
.
setMessage
(
"Recent chats selected, but contact chat expected."
)
.
setPositiveButton
(
"ok"
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
selectPage
(
actionWithAccount
,
actionWithUser
,
false
);
finish
(
);
}
});
builder
.
create
().
show
();
}
else
if
(!((
ChatViewerFragment
)
currentFragment
).
isEqual
(
actionWithAccount
,
actionWithUser
))
{
AlertDialog
.
Builder
builder
=
new
AlertDialog
.
Builder
(
this
);
builder
.
setTitle
(
"Debug message"
)
.
setMessage
(
"Wrong contact chat selected.
Reselecting...
"
)
.
setMessage
(
"Wrong contact chat selected."
)
.
setPositiveButton
(
"ok"
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
selectPage
(
actionWithAccount
,
actionWithUser
,
false
);
finish
(
);
}
});
builder
.
create
().
show
();
...
...
@@ -740,11 +740,11 @@ public class ChatViewer extends ManagedActivity implements OnChatChangedListener
AlertDialog
.
Builder
builder
=
new
AlertDialog
.
Builder
(
this
);
builder
.
setTitle
(
"Debug message"
)
.
setMessage
(
"Contact chat selected, but recent chats expected.
Reselecting...
"
)
.
setMessage
(
"Contact chat selected, but recent chats expected."
)
.
setPositiveButton
(
"ok"
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
selectPage
(
null
,
null
,
false
);
finish
(
);
}
});
builder
.
create
().
show
();
...
...
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