discussion threads activity extended to every toots + prepares to v1.0.5
This commit is contained in:
parent
82d66cb9fb
commit
529cef7777
|
@ -7,8 +7,8 @@ android {
|
|||
applicationId "fr.gouv.etalab.mastodon"
|
||||
minSdkVersion 15
|
||||
targetSdkVersion 25
|
||||
versionCode 4
|
||||
versionName "1.0.4"
|
||||
versionCode 5
|
||||
versionName "1.0.5"
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
|
|
|
@ -173,20 +173,16 @@ public class StatusListAdapter extends BaseAdapter implements OnPostActionInterf
|
|||
}
|
||||
//Click on a conversation
|
||||
if( type != RetrieveFeedsAsyncTask.Type.CONTEXT ){
|
||||
if( !status.getIn_reply_to_account_id().equals("null") || !status.getIn_reply_to_id().equals("null") ) {
|
||||
holder.status_content.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent intent = new Intent(context, ShowConversationActivity.class);
|
||||
Bundle b = new Bundle();
|
||||
b.putString("statusId", status.getId()); //Your id
|
||||
intent.putExtras(b); //Put your id to your next Intent
|
||||
context.startActivity(intent);
|
||||
}
|
||||
});
|
||||
}else{
|
||||
holder.status_content.setOnClickListener(null);
|
||||
}
|
||||
holder.status_content.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent intent = new Intent(context, ShowConversationActivity.class);
|
||||
Bundle b = new Bundle();
|
||||
b.putString("statusId", status.getId()); //Your id
|
||||
intent.putExtras(b); //Put your id to your next Intent
|
||||
context.startActivity(intent);
|
||||
}
|
||||
});
|
||||
}else {
|
||||
if( position == ShowConversationActivity.position){
|
||||
holder.main_container.setBackgroundResource(R.color.blue_light);
|
||||
|
|
Loading…
Reference in New Issue