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

@ -172,8 +172,9 @@ public class TagViewFragment extends TaskListFragment {
dataLoaded = true; dataLoaded = true;
} }
String tag = getActivity().getIntent().getStringExtra(EXTRA_TAG_NAME); TaskListActivity activity = (TaskListActivity) getActivity();
long remoteId = getActivity().getIntent().getLongExtra(EXTRA_TAG_REMOTE_ID, 0); String tag = activity.getIntent().getStringExtra(EXTRA_TAG_NAME);
long remoteId = activity.getIntent().getLongExtra(EXTRA_TAG_REMOTE_ID, 0);
if(tag == null && remoteId == 0) if(tag == null && remoteId == 0)
return; return;
@ -198,17 +199,10 @@ public class TagViewFragment extends TaskListFragment {
super.onNewIntent(intent); super.onNewIntent(intent);
// if (intent.getBooleanExtra(TOKEN_START_ACTIVITY, false)) { if (activity.getIntent().getBooleanExtra(TOKEN_START_ACTIVITY, false)) {
// getView().findViewById(R.id.activity).postDelayed(new Runnable() { activity.getIntent().removeExtra(TOKEN_START_ACTIVITY);
// @Override activity.showComments();
// 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);
// }
} }
@Override @Override

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

Loading…
Cancel
Save