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
82b57286
Commit
82b57286
authored
Feb 12, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chat: focus is not set on input view by default.
parent
ebcde01b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
27 deletions
+0
-27
ChatViewer.java
app/src/main/java/com/xabber/android/ui/ChatViewer.java
+0
-6
ChatViewerFragment.java
...c/main/java/com/xabber/android/ui/ChatViewerFragment.java
+0
-8
ChatViewerAdapter.java
...java/com/xabber/android/ui/adapter/ChatViewerAdapter.java
+0
-13
No files found.
app/src/main/java/com/xabber/android/ui/ChatViewer.java
View file @
82b57286
...
...
@@ -14,7 +14,6 @@
*/
package
com
.
xabber
.
android
.
ui
;
import
android.app.Fragment
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.os.Bundle
;
...
...
@@ -372,11 +371,6 @@ public class ChatViewer extends ManagedActivity implements OnChatChangedListener
insertExtraText
();
updateRegisteredChats
();
Fragment
currentFragment
=
chatViewerAdapter
.
getCurrentFragment
();
if
(
currentFragment
instanceof
ChatViewerFragment
)
{
((
ChatViewerFragment
)
currentFragment
).
setInputFocus
();
}
}
private
void
insertExtraText
()
{
...
...
app/src/main/java/com/xabber/android/ui/ChatViewerFragment.java
View file @
82b57286
...
...
@@ -613,14 +613,6 @@ public class ChatViewerFragment extends Fragment {
return
this
.
account
.
equals
(
account
)
&&
this
.
user
.
equals
(
user
);
}
public
void
setInputFocus
()
{
inputView
.
requestFocus
();
if
(
getActivity
()
!=
null
)
{
InputMethodManager
imm
=
(
InputMethodManager
)
getActivity
().
getSystemService
(
Context
.
INPUT_METHOD_SERVICE
);
imm
.
hideSoftInputFromWindow
(
inputView
.
getWindowToken
(),
InputMethodManager
.
HIDE_IMPLICIT_ONLY
);
}
}
public
void
setInputText
(
String
text
)
{
insertText
(
text
);
}
...
...
app/src/main/java/com/xabber/android/ui/adapter/ChatViewerAdapter.java
View file @
82b57286
...
...
@@ -185,19 +185,6 @@ public class ChatViewerAdapter extends FragmentStatePagerAdapter {
public
void
onChatViewAdapterFinishUpdate
();
}
@Override
public
void
setPrimaryItem
(
ViewGroup
container
,
int
position
,
Object
object
)
{
if
(
getCurrentFragment
()
!=
object
)
{
currentFragment
=
((
Fragment
)
object
);
}
super
.
setPrimaryItem
(
container
,
position
,
object
);
}
public
Fragment
getCurrentFragment
()
{
return
currentFragment
;
}
public
ArrayList
<
AbstractChat
>
getActiveChats
()
{
return
activeChats
;
}
...
...
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