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
04d37254
Commit
04d37254
authored
Sep 01, 2017
by
Leonardo Aramaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix hostnames being added allowing uppercase
parent
0d37954e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
RocketChatCache.java
app/src/main/java/chat/rocket/android/RocketChatCache.java
+1
-1
MainActivity.java
.../main/java/chat/rocket/android/activity/MainActivity.java
+0
-1
InputHostnameFragment.java
...et/android/fragment/add_server/InputHostnameFragment.java
+1
-1
No files found.
app/src/main/java/chat/rocket/android/RocketChatCache.java
View file @
04d37254
...
...
@@ -41,7 +41,7 @@ public class RocketChatCache {
}
public
void
setSelectedServerHostname
(
String
hostname
)
{
setString
(
KEY_SELECTED_SERVER_HOSTNAME
,
hostname
);
setString
(
KEY_SELECTED_SERVER_HOSTNAME
,
hostname
.
toLowerCase
()
);
}
public
void
addHostname
(
@NonNull
String
hostname
,
@Nullable
String
hostnameAvatarUri
)
{
...
...
app/src/main/java/chat/rocket/android/activity/MainActivity.java
View file @
04d37254
...
...
@@ -290,7 +290,6 @@ public class MainActivity extends AbstractAuthedActivity implements MainContract
FrescoHelper
.
INSTANCE
.
loadImage
(
serverButton
,
serverLogoUrl
,
placeholder
);
serverListContainer
.
addView
(
serverRow
,
serverCount
-
1
);
serverListContainer
.
requestLayout
();
}
}
}
...
...
app/src/main/java/chat/rocket/android/fragment/add_server/InputHostnameFragment.java
View file @
04d37254
...
...
@@ -72,7 +72,7 @@ public class InputHostnameFragment extends AbstractFragment implements InputHost
private
String
getHostname
()
{
final
TextView
editor
=
(
TextView
)
rootView
.
findViewById
(
R
.
id
.
editor_hostname
);
return
TextUtils
.
or
(
TextUtils
.
or
(
editor
.
getText
(),
editor
.
getHint
()),
""
).
toString
();
return
TextUtils
.
or
(
TextUtils
.
or
(
editor
.
getText
(),
editor
.
getHint
()),
""
).
toString
()
.
toLowerCase
()
;
}
private
void
showError
(
String
errString
)
{
...
...
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