Commit fa9c38e7 authored by M M Arif's avatar M M Arif

Merge branch '9-new-milestone' into 'develop'

Resolve "[New] Create new milestone"

Closes #9

See merge request mmarif4u/gitnex!19
parents 5687f521 babb24e2
...@@ -45,6 +45,7 @@ Option 2 - Open terminal(Linux) and cd to the project dir. Run `./gradlew build` ...@@ -45,6 +45,7 @@ Option 2 - Open terminal(Linux) and cd to the project dir. Run `./gradlew build`
- Emoji support - Emoji support
- Comment on issues - Comment on issues
- Milestones list - Milestones list
- Create new milestone
- Branches list - Branches list
- Releases with source download - Releases with source download
- Collaborators - Collaborators
......
...@@ -26,7 +26,7 @@ dependencies { ...@@ -26,7 +26,7 @@ dependencies {
def lifecycle_version = "2.0.0" def lifecycle_version = "2.0.0"
implementation fileTree(include: ['*.jar'], dir: 'libs') implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.1.0-alpha01' implementation 'androidx.appcompat:appcompat:1.1.0-alpha02'
implementation 'com.google.android.material:material:1.1.0-alpha03' implementation 'com.google.android.material:material:1.1.0-alpha03'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0'
......
...@@ -10,6 +10,7 @@ import android.widget.ImageView; ...@@ -10,6 +10,7 @@ import android.widget.ImageView;
import com.squareup.picasso.Picasso; import com.squareup.picasso.Picasso;
import org.mian.gitnex.R; import org.mian.gitnex.R;
import org.mian.gitnex.models.Collaborators; import org.mian.gitnex.models.Collaborators;
import org.mian.gitnex.util.RoundedTransformation;
import org.mian.gitnex.util.clickListener; import org.mian.gitnex.util.clickListener;
import java.util.List; import java.util.List;
...@@ -75,7 +76,7 @@ public class CollaboratorsAdapter extends BaseAdapter { ...@@ -75,7 +76,7 @@ public class CollaboratorsAdapter extends BaseAdapter {
private void initData(ViewHolder viewHolder, int position) { private void initData(ViewHolder viewHolder, int position) {
Collaborators currentItem = collaboratorsList.get(position); Collaborators currentItem = collaboratorsList.get(position);
Picasso.get().load(currentItem.getAvatar_url()).into(viewHolder.collaboratorAvatar); Picasso.get().load(currentItem.getAvatar_url()).transform(new RoundedTransformation(10, 0)).into(viewHolder.collaboratorAvatar);
if (!currentItem.getFull_name().equals("")) { if (!currentItem.getFull_name().equals("")) {
viewHolder.collaboratorAvatar.setOnClickListener(new clickListener(mCtx.getResources().getString(R.string.collaboratorsNameToast, currentItem.getFull_name()), mCtx)); viewHolder.collaboratorAvatar.setOnClickListener(new clickListener(mCtx.getResources().getString(R.string.collaboratorsNameToast, currentItem.getFull_name()), mCtx));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment