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
58177d52
Commit
58177d52
authored
Dec 09, 2016
by
Yusuke Iwaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix findbugs issue.
parent
2bf9c53b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
OAuthProviderInfo.java
.../rocket/android/layouthelper/oauth/OAuthProviderInfo.java
+12
-2
No files found.
app/src/main/java/chat/rocket/android/layouthelper/oauth/OAuthProviderInfo.java
View file @
58177d52
...
...
@@ -7,20 +7,28 @@ import chat.rocket.android.fragment.oauth.GitHubOAuthFragment;
import
chat.rocket.android.fragment.oauth.GoogleOAuthFragment
;
import
chat.rocket.android.fragment.oauth.TwitterOAuthFragment
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.List
;
/**
* View model for OAuth login button.
*/
public
class
OAuthProviderInfo
{
public
String
serviceName
;
public
int
buttonId
;
public
Class
<?
extends
AbstractOAuthFragment
>
fragmentClass
;
public
OAuthProviderInfo
(
String
serviceName
,
int
buttonId
,
/**
* Constructor with required parameters.
*/
private
OAuthProviderInfo
(
String
serviceName
,
int
buttonId
,
Class
<?
extends
AbstractOAuthFragment
>
fragmentClass
)
{
this
.
serviceName
=
serviceName
;
this
.
buttonId
=
buttonId
;
this
.
fragmentClass
=
fragmentClass
;
}
p
ublic
static
final
ArrayList
<
OAuthProviderInfo
>
LIST
=
new
ArrayList
<
OAuthProviderInfo
>()
{
p
rivate
static
final
ArrayList
<
OAuthProviderInfo
>
_
LIST
=
new
ArrayList
<
OAuthProviderInfo
>()
{
{
add
(
new
OAuthProviderInfo
(
"twitter"
,
R
.
id
.
btn_login_with_twitter
,
TwitterOAuthFragment
.
class
));
...
...
@@ -32,4 +40,6 @@ public class OAuthProviderInfo {
"facebook"
,
R
.
id
.
btn_login_with_facebook
,
FacebookOAuthFragment
.
class
));
}
};
public
static
final
List
<
OAuthProviderInfo
>
LIST
=
Collections
.
unmodifiableList
(
_LIST
);
}
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