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
abe8abc3
authored
Sep 09, 2016
by
Kunj Gupta
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix - App is force closed in Variable screen, string is null.
parent
e3eaeea0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app/src/main/java/com/vsoft/uoflservicenow/ui/CatalogueVariableScreen.java
app/src/main/java/com/vsoft/uoflservicenow/ui/CatalogueVariableScreen.java
View file @
abe8abc3
...
...
@@ -202,7 +202,7 @@ public class CatalogueVariableScreen extends AppCompatActivity {
LinearLayout
.
LayoutParams
.
WRAP_CONTENT
);
/*Added item Description in form*/
if
(!
mCatalogueItemShortDescription
.
isEmpty
())
{
if
(
mCatalogueItemShortDescription
!=
null
&&
!
mCatalogueItemShortDescription
.
isEmpty
())
{
TextView
shortDescriptionView
=
new
TextView
(
CatalogueVariableScreen
.
this
);
shortDescriptionView
.
setPadding
(
0
,
0
,
0
,
(
int
)
getResources
().
getDimension
(
R
.
dimen
.
normal_margin
));
shortDescriptionView
.
setTypeface
(
null
,
Typeface
.
BOLD
);
...
...
@@ -216,7 +216,7 @@ public class CatalogueVariableScreen extends AppCompatActivity {
mContainerLayout
.
addView
(
shortDescriptionView
,
childControlViewLayoutParams
);
}
if
(!
mCatalogueItemDescription
.
isEmpty
())
{
if
(
mCatalogueItemDescription
!=
null
&&
!
mCatalogueItemDescription
.
isEmpty
())
{
TextView
descriptionView
=
new
TextView
(
CatalogueVariableScreen
.
this
);
descriptionView
.
setMovementMethod
(
LinkMovementMethod
.
getInstance
());
if
(
android
.
os
.
Build
.
VERSION
.
SDK_INT
>=
android
.
os
.
Build
.
VERSION_CODES
.
N
)
{
...
...
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