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
bd38c2aa
Commit
bd38c2aa
authored
Jun 27, 2018
by
Sajal Narang
Committed by
GitHub
Jun 27, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #118 from pulsejet/nosslpic
Disable SSL verification for profile pic in ProfileFragment
parents
ecc5387e
77198796
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/fragment/ProfileFragment.java
...in/ac/iitb/gymkhana/iitbapp/fragment/ProfileFragment.java
+11
-1
No files found.
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/fragment/ProfileFragment.java
View file @
bd38c2aa
...
...
@@ -12,6 +12,7 @@ import android.view.ViewGroup;
import
android.widget.ImageView
;
import
android.widget.TextView
;
import
com.jakewharton.picasso.OkHttp3Downloader
;
import
com.squareup.picasso.Picasso
;
import
java.util.List
;
...
...
@@ -22,6 +23,7 @@ import in.ac.iitb.gymkhana.iitbapp.R;
import
in.ac.iitb.gymkhana.iitbapp.adapter.RoleAdapter
;
import
in.ac.iitb.gymkhana.iitbapp.api.RetrofitInterface
;
import
in.ac.iitb.gymkhana.iitbapp.api.ServiceGenerator
;
import
in.ac.iitb.gymkhana.iitbapp.api.UnsafeOkHttpClient
;
import
in.ac.iitb.gymkhana.iitbapp.data.Body
;
import
in.ac.iitb.gymkhana.iitbapp.data.Role
;
import
in.ac.iitb.gymkhana.iitbapp.data.User
;
...
...
@@ -95,7 +97,15 @@ public class ProfileFragment extends BaseFragment {
userRoleRecyclerView
.
setAdapter
(
roleAdapter
);
userRoleRecyclerView
.
setLayoutManager
(
new
LinearLayoutManager
(
getContext
()));
Picasso
.
with
(
getContext
()).
load
(
user
.
getUserProfilePictureUrl
()).
into
(
userProfilePictureImageView
);
Picasso
.
Builder
picassoBuilder
=
new
Picasso
.
Builder
(
getContext
());
picassoBuilder
.
downloader
(
new
OkHttp3Downloader
((
UnsafeOkHttpClient
.
getUnsafeOkHttpClient
()
)
));
Picasso
picasso
=
picassoBuilder
.
build
();
picasso
.
load
(
user
.
getUserProfilePictureUrl
()).
into
(
userProfilePictureImageView
);
userNameTextView
.
setText
(
user
.
getUserName
());
userRollNumberTextView
.
setText
(
user
.
getUserRollNumber
());
userEmailIDTextView
.
setText
(
user
.
getUserEmail
());
...
...
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