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
b2cc4390
Commit
b2cc4390
authored
May 22, 2018
by
aniket
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes failing test
parent
6f8195b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
LoginFragment.kt
...t/rocket/android/authentication/login/ui/LoginFragment.kt
+5
-5
No files found.
app/src/main/java/chat/rocket/android/authentication/login/ui/LoginFragment.kt
View file @
b2cc4390
...
@@ -228,10 +228,10 @@ class LoginFragment : Fragment(), LoginView, GoogleApiClient.ConnectionCallbacks
...
@@ -228,10 +228,10 @@ class LoginFragment : Fragment(), LoginView, GoogleApiClient.ConnectionCallbacks
null
null
)
)
}
catch
(
e
:
IntentSender
.
SendIntentException
)
{
}
catch
(
e
:
IntentSender
.
SendIntentException
)
{
Timber
.
e
(
"
STATUS"
,
"ERROR: Could not start hint picker Intent"
,
e
);
Timber
.
e
(
"
ERROR: Could not start hint picker Intent"
)
}
}
}
else
{
}
else
{
Timber
.
d
(
"
STATUS"
,
"
ERROR: nothing happening"
)
Timber
.
d
(
"ERROR: nothing happening"
)
}
}
}
}
}
}
...
@@ -249,7 +249,7 @@ class LoginFragment : Fragment(), LoginView, GoogleApiClient.ConnectionCallbacks
...
@@ -249,7 +249,7 @@ class LoginFragment : Fragment(), LoginView, GoogleApiClient.ConnectionCallbacks
try
{
try
{
status
.
startResolutionForResult
(
activity
,
requestCode
)
status
.
startResolutionForResult
(
activity
,
requestCode
)
}
catch
(
e
:
IntentSender
.
SendIntentException
)
{
}
catch
(
e
:
IntentSender
.
SendIntentException
)
{
Timber
.
e
(
"
STATUS"
,
"Failed to send Credentials intent."
,
e
)
Timber
.
e
(
"
Failed to send Credentials intent"
)
}
}
}
}
...
@@ -262,12 +262,12 @@ class LoginFragment : Fragment(), LoginView, GoogleApiClient.ConnectionCallbacks
...
@@ -262,12 +262,12 @@ class LoginFragment : Fragment(), LoginView, GoogleApiClient.ConnectionCallbacks
Auth
.
CredentialsApi
.
save
(
googleApiClient
,
credentialsToBeSaved
).
setResultCallback
(
Auth
.
CredentialsApi
.
save
(
googleApiClient
,
credentialsToBeSaved
).
setResultCallback
(
object
:
ResolvingResultCallbacks
<
Status
>(
activity
!!
,
SAVE_CREDENTIALS
)
{
object
:
ResolvingResultCallbacks
<
Status
>(
activity
!!
,
SAVE_CREDENTIALS
)
{
override
fun
onSuccess
(
status
:
Status
)
{
override
fun
onSuccess
(
status
:
Status
)
{
Timber
.
d
(
"
STATUS"
,
"
save:SUCCESS:$status"
)
Timber
.
d
(
"
credentials
save:SUCCESS:$status"
)
credentialsToBeSaved
=
null
credentialsToBeSaved
=
null
}
}
override
fun
onUnresolvableFailure
(
status
:
Status
)
{
override
fun
onUnresolvableFailure
(
status
:
Status
)
{
Timber
.
w
(
"STATUS"
,
"
save:FAILURE:$status"
)
Timber
.
e
(
"credentials
save:FAILURE:$status"
)
credentialsToBeSaved
=
null
credentialsToBeSaved
=
null
}
}
})
})
...
...
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