Go directly to comments page when clicking a comment notification

pull/14/head
Sam Bosley 13 years ago
parent bc17b23e81
commit da3aca16bf

@ -21,7 +21,6 @@ import android.graphics.Color;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
@ -570,9 +569,6 @@ public class EditPeopleControlSet extends PopupControlSet {
selected = 0;*/
return true;
}
else {
Log.d("Edit People control set", "Does not equal task rabbit");
}
userJson = item.user;
}
}

@ -172,8 +172,9 @@ public class TagViewFragment extends TaskListFragment {
dataLoaded = true;
}
String tag = getActivity().getIntent().getStringExtra(EXTRA_TAG_NAME);
long remoteId = getActivity().getIntent().getLongExtra(EXTRA_TAG_REMOTE_ID, 0);
TaskListActivity activity = (TaskListActivity) getActivity();
String tag = activity.getIntent().getStringExtra(EXTRA_TAG_NAME);
long remoteId = activity.getIntent().getLongExtra(EXTRA_TAG_REMOTE_ID, 0);
if(tag == null && remoteId == 0)
return;
@ -198,17 +199,10 @@ public class TagViewFragment extends TaskListFragment {
super.onNewIntent(intent);
// if (intent.getBooleanExtra(TOKEN_START_ACTIVITY, false)) {
// getView().findViewById(R.id.activity).postDelayed(new Runnable() {
// @Override
// public void run() {
// Intent i = new Intent(getActivity(), TagUpdatesActivity.class);
// i.putExtra(EXTRA_TAG_DATA, tagData);
// startActivity(i);
// AndroidUtilities.callOverridePendingTransition(getActivity(), R.anim.slide_left_in, R.anim.slide_left_out);
// }
// }, 500);
// }
if (activity.getIntent().getBooleanExtra(TOKEN_START_ACTIVITY, false)) {
activity.getIntent().removeExtra(TOKEN_START_ACTIVITY);
activity.showComments();
}
}
@Override

@ -344,6 +344,10 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener
commentsButton.setBackgroundResource(tv.data);
}
public void showComments() {
commentsButton.performClick();
}
@Override
public void onBackPressed() {
// manage task edit visibility

Loading…
Cancel
Save