Skip to content

Conversation

sorryIMessedup
Copy link

Added Tags for activities, and Rich Text Editor.

@ramack
Copy link
Owner

ramack commented Jan 3, 2024

Thanks for your contribution. The Tag stuff seems to miss the storage. For the Rich Text it might be incomplete, but please separate those different features in separate PRs!

@ramack ramack self-requested a review January 3, 2024 21:08
@@ -417,9 +423,13 @@ public boolean onOptionsItemSelected(MenuItem item) {
).show();
} else {
if (currentActivity == null) {
ActivityHelper.helper.insertActivity(new DiaryActivity(-1, mActivityName.getText().toString(), mActivityColor));
ActivityHelper.helper.insertActivity(new DiaryActivity(-1, mActivityName.getText().toString(), mActivityColor,mActivityTag.getText().toString()));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be cool to have a space after the comma in parameter lists, but yea that's quite minor :-)

/**
* must call init at your application level or equiv, before you use any other methods
*/
public class SPUtils {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to have this SPUtils class? Can you elaborate on that and explain its function in the comment, not only the need for initialization?

@@ -55,11 +56,13 @@ public SelectViewHolders onCreateViewHolder(ViewGroup parent, int viewType) {
public void onBindViewHolder(SelectViewHolders holder, int position) {
DiaryActivity act = mActivityList.get(position);
NumberFormat formatter = new DecimalFormat("#0.00");
holder.mTag.setText("Tag:"+ SPUtils.getString(act.getName()+act.getColor()));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't we need localization here, (and a space after the colon, as this is user visible)?

@@ -37,6 +37,7 @@ public SelectViewHolders(SelectRecyclerViewAdapter.SelectListener listener, View
super(itemView);
itemView.setOnClickListener(this);
itemView.setOnLongClickListener(this);
mTag= (TextView) itemView.findViewById(R.id.tv_tag);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the meaning of the abbreviation "tv"?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't need this change to be merged, right? can you remove it from the PR?

@Override
public void onClick(View view) {
Intent intent = new Intent(RedPacketActivity.this, MainActivity.class);
// 启动目标Activity
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is that Chinese? maybe you can remove it?

import de.rampro.activitydiary.ui.generic.BaseActivity;


public class RedPacketActivity extends BaseActivity implements
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment explaining what this class is about?

protected void onResume() {
super.onResume();
try {
String path = "https://poss-videocloud.cns.com.cn/oss/2021/05/08/chinanews/MEIZI_YUNSHI/onair/25AFA3CA2F394DB38420CC0A44483E82.mp4" ;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

???

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is not adequate styling...

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems to be included by fault, please remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants