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
1787ea35
Commit
1787ea35
authored
Apr 16, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrong chat selected debug message removed.
parent
32ede03d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
44 deletions
+0
-44
ChatViewer.java
app/src/main/java/com/xabber/android/ui/ChatViewer.java
+0
-44
No files found.
app/src/main/java/com/xabber/android/ui/ChatViewer.java
View file @
1787ea35
...
@@ -408,51 +408,7 @@ public class ChatViewer extends ManagedActivity implements OnChatChangedListener
...
@@ -408,51 +408,7 @@ public class ChatViewer extends ManagedActivity implements OnChatChangedListener
@Override
@Override
public
void
onChatViewAdapterFinishUpdate
()
{
public
void
onChatViewAdapterFinishUpdate
()
{
insertExtraText
();
insertExtraText
();
updateRegisteredChats
();
updateRegisteredChats
();
Fragment
currentFragment
=
chatViewerAdapter
.
getCurrentFragment
();
if
(
isChatSelected
)
{
if
(!(
currentFragment
instanceof
ChatViewerFragment
))
{
AlertDialog
.
Builder
builder
=
new
AlertDialog
.
Builder
(
this
);
builder
.
setTitle
(
"Debug message"
)
.
setMessage
(
"Recent chats selected, but contact chat expected."
)
.
setPositiveButton
(
"ok"
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
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."
)
.
setPositiveButton
(
"ok"
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
finish
();
}
});
builder
.
create
().
show
();
}
}
else
{
if
(!(
currentFragment
instanceof
RecentChatFragment
))
{
AlertDialog
.
Builder
builder
=
new
AlertDialog
.
Builder
(
this
);
builder
.
setTitle
(
"Debug message"
)
.
setMessage
(
"Contact chat selected, but recent chats expected."
)
.
setPositiveButton
(
"ok"
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
finish
();
}
});
builder
.
create
().
show
();
}
}
}
}
private
void
insertExtraText
()
{
private
void
insertExtraText
()
{
...
...
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