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
67de14f4
Commit
67de14f4
authored
Dec 23, 2016
by
Tiago Cunha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved class naming
parent
bfff726e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
InputHostnameFragment.java
...android/fragment/server_config/InputHostnameFragment.java
+4
-4
ServerPolicyHelper.java
...n/java/chat/rocket/android/helper/ServerPolicyHelper.java
+1
-1
No files found.
app/src/main/java/chat/rocket/android/fragment/server_config/InputHostnameFragment.java
View file @
67de14f4
...
...
@@ -9,7 +9,7 @@ import chat.rocket.android.R;
import
chat.rocket.android.RocketChatCache
;
import
chat.rocket.android.helper.LogcatIfError
;
import
chat.rocket.android.helper.OkHttpHelper
;
import
chat.rocket.android.helper.ServerHelper
;
import
chat.rocket.android.helper.Server
Policy
Helper
;
import
chat.rocket.android.helper.TextUtils
;
import
chat.rocket.android.model.ServerConfig
;
import
chat.rocket.android.realm_helper.RealmObjectObserver
;
...
...
@@ -40,10 +40,10 @@ public class InputHostnameFragment extends AbstractServerConfigFragment {
}
private
void
handleConnect
()
{
final
String
hostname
=
ServerHelper
.
enforceHostname
(
getHostname
());
final
String
hostname
=
Server
Policy
Helper
.
enforceHostname
(
getHostname
());
ServerHelper
.
isApiVersionValid
(
OkHttpHelper
.
getClientForUploadFile
(),
hostname
,
new
ServerHelper
.
Callback
()
{
Server
Policy
Helper
.
isApiVersionValid
(
OkHttpHelper
.
getClientForUploadFile
(),
hostname
,
new
Server
Policy
Helper
.
Callback
()
{
@Override
public
void
isValid
()
{
getActivity
().
runOnUiThread
(()
->
onServerValid
(
hostname
));
...
...
app/src/main/java/chat/rocket/android/helper/ServerHelper.java
→
app/src/main/java/chat/rocket/android/helper/Server
Policy
Helper.java
View file @
67de14f4
...
...
@@ -11,7 +11,7 @@ import okhttp3.Request;
import
okhttp3.Response
;
import
okhttp3.ResponseBody
;
public
class
ServerHelper
{
public
class
Server
Policy
Helper
{
private
static
final
String
DEFAULT_HOST
=
".rocket.chat"
;
private
static
final
String
API_INFO_PATH
=
"/api/info"
;
...
...
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