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
70435e8b
Commit
70435e8b
authored
Jun 03, 2017
by
Matheus Jardim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved OAuth webviews loading from onResume to onCreate
parent
0fe062dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
AbstractOAuthFragment.java
.../rocket/android/fragment/oauth/AbstractOAuthFragment.java
+4
-1
No files found.
app/src/main/java/chat/rocket/android/fragment/oauth/AbstractOAuthFragment.java
View file @
70435e8b
...
@@ -6,10 +6,12 @@ import android.text.TextUtils;
...
@@ -6,10 +6,12 @@ import android.text.TextUtils;
import
android.util.Base64
;
import
android.util.Base64
;
import
android.webkit.JavascriptInterface
;
import
android.webkit.JavascriptInterface
;
import
android.webkit.WebView
;
import
android.webkit.WebView
;
import
org.json.JSONException
;
import
org.json.JSONException
;
import
org.json.JSONObject
;
import
org.json.JSONObject
;
import
java.nio.charset.Charset
;
import
java.nio.charset.Charset
;
import
chat.rocket.android.api.MethodCallHelper
;
import
chat.rocket.android.api.MethodCallHelper
;
import
chat.rocket.android.fragment.AbstractWebViewFragment
;
import
chat.rocket.android.fragment.AbstractWebViewFragment
;
import
chat.rocket.core.models.LoginServiceConfiguration
;
import
chat.rocket.core.models.LoginServiceConfiguration
;
...
@@ -61,13 +63,14 @@ public abstract class AbstractOAuthFragment extends AbstractWebViewFragment
...
@@ -61,13 +63,14 @@ public abstract class AbstractOAuthFragment extends AbstractWebViewFragment
new
RealmLoginServiceConfigurationRepository
(
hostname
),
new
RealmLoginServiceConfigurationRepository
(
hostname
),
new
MethodCallHelper
(
getContext
(),
hostname
)
new
MethodCallHelper
(
getContext
(),
hostname
)
);
);
presenter
.
loadService
(
getOAuthServiceName
());
}
}
@Override
@Override
public
void
onResume
()
{
public
void
onResume
()
{
super
.
onResume
();
super
.
onResume
();
presenter
.
bindView
(
this
);
presenter
.
bindView
(
this
);
presenter
.
loadService
(
getOAuthServiceName
());
}
}
@Override
@Override
...
...
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