Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-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
AloqaIM-Android
Commits
4483c295
Commit
4483c295
authored
Nov 30, 2017
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unneeded method to check if the hard keyboard is shown (we don't need it).
parent
396e1043
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
30 deletions
+0
-30
AuthenticationLoginFragment.kt
...va/chat/rocket/android/app/AuthenticationLoginFragment.kt
+0
-16
KeyboardHelper.kt
app/src/main/java/chat/rocket/android/app/KeyboardHelper.kt
+0
-14
No files found.
app/src/main/java/chat/rocket/android/app/AuthenticationLoginFragment.kt
View file @
4483c295
...
...
@@ -43,22 +43,6 @@ class AuthenticationLoginFragment : Fragment() {
shouldShowSignUpMsgView
(
true
)
}
override
fun
onConfigurationChanged
(
newConfig
:
Configuration
?)
{
super
.
onConfigurationChanged
(
newConfig
)
if
(
KeyboardHelper
.
isHardKeyboardShown
(
newConfig
))
{
shouldShowOauthView
(
false
)
shouldShowSignUpMsgView
(
false
)
shouldShowLoginButton
(
true
)
}
else
{
if
(
isEditTextNullOrBlank
())
{
shouldShowOauthView
(
true
)
shouldShowSignUpMsgView
(
true
)
shouldShowLoginButton
(
false
)
}
}
}
private
fun
tintEditTextDrawableStart
()
{
val
context
=
activity
.
applicationContext
...
...
app/src/main/java/chat/rocket/android/app/KeyboardHelper.kt
View file @
4483c295
package
chat.rocket.android.app
import
android.content.res.Configuration
import
android.graphics.Rect
import
android.view.View
...
...
@@ -22,17 +21,4 @@ object KeyboardHelper {
val
heightDiff
=
rootView
.
bottom
-
rect
.
bottom
return
heightDiff
>
softKeyboardHeight
*
dm
.
density
}
/**
* Returns true if the hard keyboard is shown, false otherwise.
*
* @param newConfig The configuration.
* @return true if the hard keyboard is shown, false otherwise.
*/
fun
isHardKeyboardShown
(
newConfig
:
Configuration
?):
Boolean
{
if
(
newConfig
?.
hardKeyboardHidden
==
Configuration
.
HARDKEYBOARDHIDDEN_NO
)
{
return
true
}
return
false
}
}
\ No newline at end of file
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