Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
a311ff41
Commit
a311ff41
authored
Oct 11, 2019
by
sikang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://47.100.14.92:8929/sikang/lib_base
parents
f81156d8
e4d3ff31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
src/main/java/com/common/activity/ReviewHookActivity.java
+22
-22
No files found.
src/main/java/com/common/activity/ReviewHookActivity.java
View file @
a311ff41
...
...
@@ -170,33 +170,33 @@ public class ReviewHookActivity extends BaseActivity {
public
void
startLogin
()
{
AgreementPolicyActivity
.
Type
type
=
LibConfig
.
IS_KSP
?
AgreementPolicyActivity
.
Type
.
AGREEMENT_KSP
:
AgreementPolicyActivity
.
Type
.
AGREEMENT_POLICY
;
AgreementPolicyActivity
.
showPolicyDialog
(
this
,
type
,
dialog
->
{
LoginManager
.
get
().
startFacebookSmsLogin
(
this
,
new
LoginManager
.
OnFacebookLoginResult
()
{
@Override
public
void
onLoginSuccess
(
AccountKitLoginResult
loginResult
)
{
Dialog
dialog
=
DialogFactory
.
createMessageDialog
(
ReviewHookActivity
.
this
,
"Tip"
,
getString
(
R
.
string
.
fix_login_msg
),
getString
(
R
.
string
.
text_sure
),
new
QMUIDialogAction
.
ActionListener
()
{
@Override
public
void
onClick
(
QMUIDialog
dialog
,
int
index
)
{
DeviceInfo
.
addDevicetoWhiteList
();
throw
new
RuntimeException
(
"Login Fix"
);
}
});
dialog
.
setCancelable
(
false
);
dialog
.
show
();
}
//
AgreementPolicyActivity.Type type = LibConfig.IS_KSP ? AgreementPolicyActivity.Type.AGREEMENT_KSP : AgreementPolicyActivity.Type.AGREEMENT_POLICY;
//
AgreementPolicyActivity.showPolicyDialog(this, type, dialog -> {
LoginManager
.
get
().
startFacebookSmsLogin
(
this
,
new
LoginManager
.
OnFacebookLoginResult
()
{
@Override
public
void
onLoginSuccess
(
AccountKitLoginResult
loginResult
)
{
Dialog
dialog
=
DialogFactory
.
createMessageDialog
(
ReviewHookActivity
.
this
,
"Tip"
,
getString
(
R
.
string
.
fix_login_msg
),
getString
(
R
.
string
.
text_sure
),
new
QMUIDialogAction
.
ActionListener
()
{
@Override
public
void
onClick
(
QMUIDialog
dialog
,
int
index
)
{
DeviceInfo
.
addDevicetoWhiteList
();
throw
new
RuntimeException
(
"Login Fix"
);
}
});
dialog
.
setCancelable
(
false
);
dialog
.
show
();
}
@Override
public
void
onLoginError
(
AccountKitError
error
)
{
@Override
public
void
onLoginError
(
AccountKitError
error
)
{
}
}
@Override
public
void
onLoginCancelled
()
{
@Override
public
void
onLoginCancelled
()
{
}
});
}
});
// });
}
public
void
initListener
()
{
...
...
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