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
6dd6fd17
authored
Apr 17, 2018
by
Kunj Gupta
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Added App info detail in debug and staging build type.
parent
cfe3cf4f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
app/src/main/java/com/vsoft/servicenow/ui/HomeScreen.java
app/src/main/java/com/vsoft/servicenow/ui/HomeScreen.java
View file @
6dd6fd17
...
...
@@ -11,6 +11,8 @@ import android.view.View;
import
android.widget.GridView
;
import
com.google.android.gms.analytics.Tracker
;
import
com.vsoft.servicenow.AppConfig
;
import
com.vsoft.servicenow.BuildConfig
;
import
com.vsoft.servicenow.CatalogueApplication
;
import
com.vsoft.servicenow.MenuProvider
;
import
com.vsoft.servicenow.R
;
...
...
@@ -24,6 +26,8 @@ import com.vsoft.servicenow.db.managers.CatalogueManager;
import
com.vsoft.servicenow.db.models.Catalogue
;
import
com.vsoft.servicenow.enums.SyncStatus
;
import
com.vsoft.servicenow.menu.HomeScreenMenuItemData
;
import
com.vsoft.servicenow.utils.CatalogueLog
;
import
com.vsoft.servicenow.utils.Constants
;
import
com.vsoft.servicenow.utils.PrefManager
;
import
com.vsoft.servicenow.utils.Util
;
...
...
@@ -68,6 +72,38 @@ public class HomeScreen extends HandleNotificationActivity {
startActivity
(
intent
);
}
@OnClick
(
R
.
id
.
nav_back
)
void
homeIconClicked
()
{
if
(
BuildConfig
.
BUILD_TYPE_INT
!=
2
)
{
AlertDialog
.
Builder
builder
=
new
AlertDialog
.
Builder
(
this
);
StringBuilder
stringBuilder
=
new
StringBuilder
();
stringBuilder
.
append
(
"ServiceNow Instance: "
);
stringBuilder
.
append
(
Constants
.
DOMAIN
);
stringBuilder
.
append
(
"\n"
);
stringBuilder
.
append
(
"Socket URL: "
);
stringBuilder
.
append
(
Constants
.
CHAT_SERVER_URL
);
stringBuilder
.
append
(
"\n"
);
stringBuilder
.
append
(
"Build Version: "
);
stringBuilder
.
append
(
BuildConfig
.
VERSION_NAME
);
stringBuilder
.
append
(
"\n"
);
stringBuilder
.
append
(
"Flavor: "
);
stringBuilder
.
append
(
BuildConfig
.
FLAVOR
);
stringBuilder
.
append
(
"\n"
);
stringBuilder
.
append
(
"Build Type: "
);
stringBuilder
.
append
(
BuildConfig
.
BUILD_TYPE
);
builder
.
setMessage
(
stringBuilder
.
toString
())
.
setTitle
(
"App Info"
)
.
setCancelable
(
false
)
.
setPositiveButton
(
R
.
string
.
ok_string
,
new
DialogInterface
.
OnClickListener
()
{
public
void
onClick
(
DialogInterface
dialog
,
int
id
)
{
dialog
.
dismiss
();
}
});
AlertDialog
alert
=
builder
.
create
();
alert
.
show
();
}
}
@OnClick
(
R
.
id
.
home_screen_logout_image_view
)
void
logoutOnClicked
()
{
AlertDialog
.
Builder
builder
=
new
AlertDialog
.
Builder
(
this
);
...
...
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