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
933a501c
Commit
933a501c
authored
Oct 11, 2018
by
sshivam95
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore changes
parent
f3a4d23c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
5 deletions
+8
-5
.idea/caches/build_file_checksums.ser
.idea/caches/build_file_checksums.ser
+0
-0
.idea/misc.xml
.idea/misc.xml
+1
-1
.idea/modules.xml
.idea/modules.xml
+1
-0
app/src/main/java/app/insti/adapter/CommentRecyclerViewAdapter.java
...in/java/app/insti/adapter/CommentRecyclerViewAdapter.java
+1
-0
app/src/main/java/app/insti/fragment/FileComplaintFragment.java
...c/main/java/app/insti/fragment/FileComplaintFragment.java
+4
-3
app/src/main/res/layout/fragment_file_complaint.xml
app/src/main/res/layout/fragment_file_complaint.xml
+1
-1
No files found.
.idea/caches/build_file_checksums.ser
View file @
933a501c
No preview for this file type
.idea/misc.xml
View file @
933a501c
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
</value>
</value>
</option>
</option>
</component>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
7
"
default=
"true"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
8
"
default=
"true"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/build/classes"
/>
<output
url=
"file://$PROJECT_DIR$/build/classes"
/>
</component>
</component>
<component
name=
"ProjectType"
>
<component
name=
"ProjectType"
>
...
...
.idea/modules.xml
View file @
933a501c
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
<module
fileurl=
"file://$PROJECT_DIR$/IITB-App.iml"
filepath=
"$PROJECT_DIR$/IITB-App.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/IITB-App.iml"
filepath=
"$PROJECT_DIR$/IITB-App.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/IITBApp.iml"
filepath=
"$PROJECT_DIR$/IITBApp.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/IITBApp.iml"
filepath=
"$PROJECT_DIR$/IITBApp.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/InstiApp.iml"
filepath=
"$PROJECT_DIR$/InstiApp.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/InstiApp.iml"
filepath=
"$PROJECT_DIR$/InstiApp.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/InstiApp2.iml"
filepath=
"$PROJECT_DIR$/InstiApp2.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/app/app.iml"
filepath=
"$PROJECT_DIR$/app/app.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/app/app.iml"
filepath=
"$PROJECT_DIR$/app/app.iml"
/>
</modules>
</modules>
</component>
</component>
...
...
app/src/main/java/app/insti/adapter/CommentRecyclerViewAdapter.java
View file @
933a501c
...
@@ -129,6 +129,7 @@ public class CommentRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerVie
...
@@ -129,6 +129,7 @@ public class CommentRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerVie
notifyDataSetChanged
();
notifyDataSetChanged
();
notifyItemRemoved
(
position
);
notifyItemRemoved
(
position
);
notifyItemRangeChanged
(
position
,
commentList
.
size
()
-
position
);
notifyItemRangeChanged
(
position
,
commentList
.
size
()
-
position
);
textViewCommentLabel
.
setText
(
"Comments ("
+
commentList
.
size
()
+
")"
);
}
else
{
}
else
{
Toast
.
makeText
(
context
,
"You can't delete this comment"
,
Toast
.
LENGTH_SHORT
).
show
();
Toast
.
makeText
(
context
,
"You can't delete this comment"
,
Toast
.
LENGTH_SHORT
).
show
();
}
}
...
...
app/src/main/java/app/insti/fragment/FileComplaintFragment.java
View file @
933a501c
...
@@ -16,6 +16,7 @@ import android.os.Bundle;
...
@@ -16,6 +16,7 @@ import android.os.Bundle;
import
android.provider.MediaStore
;
import
android.provider.MediaStore
;
import
android.support.annotation.NonNull
;
import
android.support.annotation.NonNull
;
import
android.support.annotation.Nullable
;
import
android.support.annotation.Nullable
;
import
android.support.design.widget.AppBarLayout
;
import
android.support.design.widget.CollapsingToolbarLayout
;
import
android.support.design.widget.CollapsingToolbarLayout
;
import
android.support.v4.app.ActivityCompat
;
import
android.support.v4.app.ActivityCompat
;
import
android.support.v4.app.Fragment
;
import
android.support.v4.app.Fragment
;
...
@@ -125,7 +126,6 @@ public class FileComplaintFragment extends Fragment {
...
@@ -125,7 +126,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
;
...
@@ -209,10 +209,11 @@ public class FileComplaintFragment extends Fragment {
...
@@ -209,10 +209,11 @@ public class FileComplaintFragment extends Fragment {
viewPager
=
view
.
findViewById
(
R
.
id
.
complaint_image_view_pager
);
viewPager
=
view
.
findViewById
(
R
.
id
.
complaint_image_view_pager
);
indicator
=
view
.
findViewById
(
R
.
id
.
indicator
);
indicator
=
view
.
findViewById
(
R
.
id
.
indicator
);
imageActionButton
=
view
.
findViewById
(
R
.
id
.
fabButton
);
imageActionButton
=
view
.
findViewById
(
R
.
id
.
add_image
);
imageActionButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
imageActionButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
Log
.
i
(
TAG
,
"@@@@@@@@ imageActionButton onClick"
);
giveOptionsToAddImage
();
giveOptionsToAddImage
();
}
}
});
});
...
@@ -818,7 +819,7 @@ public class FileComplaintFragment extends Fragment {
...
@@ -818,7 +819,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
());
...
...
app/src/main/res/layout/fragment_file_complaint.xml
View file @
933a501c
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
<android.support.v7.widget.AppCompatImageButton
<android.support.v7.widget.AppCompatImageButton
android:id=
"@+id/
fabButton
"
android:id=
"@+id/
add_image
"
android:layout_width=
"40dp"
android:layout_width=
"40dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical|right"
android:layout_gravity=
"center_vertical|right"
...
...
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