Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Krishna Vemulavada
/
vera_2.1_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
64c71424
authored
Oct 10, 2019
by
Krishna Vemulawada
Browse files
Options
_('Browse Files')
Download
Plain Diff
pull code
parents
4d36b95e
c7afbbdb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
app/src/main/java/com/vsoft/vera/ui/ADALActivity.java
app/src/main/java/com/vsoft/vera/ui/OtpValidationActivity.java
app/src/main/java/com/vsoft/vera/ui/ADALActivity.java
View file @
64c71424
...
...
@@ -178,12 +178,6 @@ public class ADALActivity extends AppCompatActivity {
if
(
NetworkConnectivity
.
haveNetworkConnection
(
ADALActivity
.
this
))
{
onCallGraphClicked
();
mWaitHandler
.
postDelayed
(
new
Runnable
()
{
@Override
public
void
run
()
{
updateSuccessUI
();
}
},
5000
);
}
else
{
DialogUtils
.
showNoConnectionDialog
(
ADALActivity
.
this
);
...
...
@@ -212,7 +206,7 @@ public class ADALActivity extends AppCompatActivity {
if
(
sIntSignInInvoked
.
compareAndSet
(
false
,
true
))
{
if
(
msg
.
what
==
MSG_INTERACTIVE_SIGN_IN_PROMPT_AUTO
){
mAuthContext
.
acquireToken
(
getActivity
(),
RESOURCE_ID
,
CLIENT_ID
,
REDIRECT_URI
,
PromptBehavior
.
Always
,
getAuthInteractiveCallback
());
}
else
if
(
msg
.
what
==
MSG_INTERACTIVE_SIGN_IN_PROMPT_ALWAYS
){
}
else
if
(
msg
.
what
==
MSG_INTERACTIVE_SIGN_IN_PROMPT_ALWAYS
){
mAuthContext
.
acquireToken
(
getActivity
(),
RESOURCE_ID
,
CLIENT_ID
,
REDIRECT_URI
,
PromptBehavior
.
Always
,
getAuthInteractiveCallback
());
}
}
...
...
@@ -279,6 +273,17 @@ public class ADALActivity extends AppCompatActivity {
@Override
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
Intent
data
)
{
super
.
onActivityResult
(
requestCode
,
resultCode
,
data
);
if
(
resultCode
==
2003
){
/* update the UI to post call graph state */
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
updateSuccessUI
();
}
});
}
mAuthContext
.
onActivityResult
(
requestCode
,
resultCode
,
data
);
}
...
...
@@ -391,7 +396,7 @@ public class ADALActivity extends AppCompatActivity {
LinearLayout
.
LayoutParams
layoutParams
=
new
LinearLayout
.
LayoutParams
(
convertDpToPx
(
this
,
300
),
convertDpToPx
(
this
,
450
));
layoutParams
.
setMargins
(
convertDpToPx
(
this
,
30
),
convertDpToPx
(
this
,
30
),
convertDpToPx
(
this
,
30
),
convertDpToPx
(
this
,
30
));
layoutParams
.
setMargins
(
convertDpToPx
(
this
,
55
),
convertDpToPx
(
this
,
30
),
convertDpToPx
(
this
,
30
),
convertDpToPx
(
this
,
30
));
logo_banner
.
setLayoutParams
(
layoutParams
);
signOutButton
.
setVisibility
(
View
.
GONE
);
...
...
@@ -446,12 +451,12 @@ public class ADALActivity extends AppCompatActivity {
callGraphAPI
();
/* update the UI to post call graph state */
runOnUiThread
(
new
Runnable
()
{
/*
runOnUiThread(new Runnable() {
@Override
public void run() {
updateSuccessUI();
}
});
});
*/
}
@Override
...
...
@@ -525,12 +530,12 @@ public class ADALActivity extends AppCompatActivity {
callGraphAPI
();
/* update the UI to post call graph state */
runOnUiThread
(
new
Runnable
()
{
/*
runOnUiThread(new Runnable() {
@Override
public void run() {
updateSuccessUI();
}
});
});
*/
/* set the sIntSignInInvoked boolean back to false */
sIntSignInInvoked
.
set
(
false
);
...
...
app/src/main/java/com/vsoft/vera/ui/OtpValidationActivity.java
View file @
64c71424
...
...
@@ -106,11 +106,10 @@ public class OtpValidationActivity extends Activity {
}
if
(!
TextUtils
.
isEmpty
(
phoneString
)
)
{
if
(!
TextUtils
.
isEmpty
(
phoneString
)
&&
phoneString
.
length
()
>=
10
)
{
KeyboardUtil
.
hideKeyboard
(
OtpValidationActivity
.
this
);
if
(
mApplication
.
isNetConnected
())
{
new
generateOtp
().
execute
(
phoneString
);
}
else
{
...
...
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