Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
InstiApp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
RAHUL SHARMA
InstiApp
Commits
606d6f56
Commit
606d6f56
authored
Oct 08, 2018
by
Preetam Ozarde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Venter: Remove Toasts
parent
a75556eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
app/src/main/java/app/insti/fragment/ComplaintDetailsFragment.java
...ain/java/app/insti/fragment/ComplaintDetailsFragment.java
+0
-3
app/src/main/java/app/insti/fragment/FileComplaintFragment.java
...c/main/java/app/insti/fragment/FileComplaintFragment.java
+4
-2
No files found.
app/src/main/java/app/insti/fragment/ComplaintDetailsFragment.java
View file @
606d6f56
...
@@ -94,7 +94,6 @@ public class ComplaintDetailsFragment extends Fragment {
...
@@ -94,7 +94,6 @@ public class ComplaintDetailsFragment extends Fragment {
if
(
response
.
isSuccessful
())
{
if
(
response
.
isSuccessful
())
{
Venter
.
Complaint
complaint
=
response
.
body
();
Venter
.
Complaint
complaint
=
response
.
body
();
initTabViews
(
complaint
);
initTabViews
(
complaint
);
Toast
.
makeText
(
getActivity
().
getApplicationContext
(),
"You have Up Voted this complaint"
,
Toast
.
LENGTH_SHORT
).
show
();
voteCount
++;
voteCount
++;
}
}
}
}
...
@@ -104,8 +103,6 @@ public class ComplaintDetailsFragment extends Fragment {
...
@@ -104,8 +103,6 @@ public class ComplaintDetailsFragment extends Fragment {
Log
.
i
(
TAG
,
"failure in up vote: "
+
t
.
toString
());
Log
.
i
(
TAG
,
"failure in up vote: "
+
t
.
toString
());
}
}
});
});
}
else
{
Toast
.
makeText
(
getActivity
().
getApplicationContext
(),
"You have already UpVoted this complaint"
,
Toast
.
LENGTH_SHORT
).
show
();
}
}
}
}
...
...
app/src/main/java/app/insti/fragment/FileComplaintFragment.java
View file @
606d6f56
...
@@ -125,7 +125,6 @@ public class FileComplaintFragment extends Fragment {
...
@@ -125,7 +125,6 @@ public class FileComplaintFragment extends Fragment {
String
userId
;
String
userId
;
View
view
;
View
view
;
NestedScrollView
nestedScrollView
;
NestedScrollView
nestedScrollView
;
LinearLayout
linearLayoutAddImage
;
private
boolean
GPSIsSetup
=
false
;
private
boolean
GPSIsSetup
=
false
;
FusedLocationProviderClient
mFusedLocationClient
;
FusedLocationProviderClient
mFusedLocationClient
;
ProgressDialog
progressDialog
;
ProgressDialog
progressDialog
;
...
@@ -328,6 +327,7 @@ public class FileComplaintFragment extends Fragment {
...
@@ -328,6 +327,7 @@ public class FileComplaintFragment extends Fragment {
});
});
// ends here
// ends here
tagView
=
view
.
findViewById
(
R
.
id
.
tag_view
);
tagView
=
view
.
findViewById
(
R
.
id
.
tag_view
);
tagView
.
setOnTagDeleteListener
(
new
TagView
.
OnTagDeleteListener
()
{
tagView
.
setOnTagDeleteListener
(
new
TagView
.
OnTagDeleteListener
()
{
...
@@ -600,10 +600,12 @@ public class FileComplaintFragment extends Fragment {
...
@@ -600,10 +600,12 @@ public class FileComplaintFragment extends Fragment {
@Override
@Override
public
void
run
()
{
public
void
run
()
{
nestedScrollView
.
fullScroll
(
ScrollView
.
FOCUS_DOWN
);
nestedScrollView
.
fullScroll
(
ScrollView
.
FOCUS_DOWN
);
}
}
});
});
}
}
private
void
prepareTags
()
{
private
void
prepareTags
()
{
tagList
=
new
ArrayList
<>();
tagList
=
new
ArrayList
<>();
try
{
try
{
...
@@ -814,7 +816,7 @@ public class FileComplaintFragment extends Fragment {
...
@@ -814,7 +816,7 @@ public class FileComplaintFragment extends Fragment {
if
(
viewPager
!=
null
)
{
if
(
viewPager
!=
null
)
{
try
{
try
{
imageViewPagerAdapter
=
new
ImageViewPagerAdapter
(
getFragmentManager
(),
uploadedImagesUrl
);
imageViewPagerAdapter
=
new
ImageViewPagerAdapter
(
getFragmentManager
(),
uploadedImagesUrl
);
linearLayoutAddImage
.
setVisibility
(
View
.
GON
E
);
collapsing_toolbar
.
setVisibility
(
View
.
VISIBL
E
);
viewPager
.
setAdapter
(
imageViewPagerAdapter
);
viewPager
.
setAdapter
(
imageViewPagerAdapter
);
indicator
.
setViewPager
(
viewPager
);
indicator
.
setViewPager
(
viewPager
);
imageViewPagerAdapter
.
registerDataSetObserver
(
indicator
.
getDataSetObserver
());
imageViewPagerAdapter
.
registerDataSetObserver
(
indicator
.
getDataSetObserver
());
...
...
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