mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-29 04:17:12 +01:00
Minor bugs fixed.
This commit is contained in:
parent
b059b2d503
commit
23368c89a8
@ -137,14 +137,14 @@ public class ViewPrivateMessagesActivity extends BaseActivity implements Activit
|
|||||||
private void bindView() {
|
private void bindView() {
|
||||||
if (privateMessage != null) {
|
if (privateMessage != null) {
|
||||||
if (privateMessage.getAuthor().equals(mAccountName)) {
|
if (privateMessage.getAuthor().equals(mAccountName)) {
|
||||||
mToolbar.setTitle(privateMessage.getDestination());
|
setTitle(privateMessage.getDestination());
|
||||||
mToolbar.setOnClickListener(view -> {
|
mToolbar.setOnClickListener(view -> {
|
||||||
Intent intent = new Intent(this, ViewUserDetailActivity.class);
|
Intent intent = new Intent(this, ViewUserDetailActivity.class);
|
||||||
intent.putExtra(ViewUserDetailActivity.EXTRA_USER_NAME_KEY, privateMessage.getDestination());
|
intent.putExtra(ViewUserDetailActivity.EXTRA_USER_NAME_KEY, privateMessage.getDestination());
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
mToolbar.setTitle(privateMessage.getAuthor());
|
setTitle(privateMessage.getAuthor());
|
||||||
mToolbar.setOnClickListener(view -> {
|
mToolbar.setOnClickListener(view -> {
|
||||||
Intent intent = new Intent(this, ViewUserDetailActivity.class);
|
Intent intent = new Intent(this, ViewUserDetailActivity.class);
|
||||||
intent.putExtra(ViewUserDetailActivity.EXTRA_USER_NAME_KEY, privateMessage.getAuthor());
|
intent.putExtra(ViewUserDetailActivity.EXTRA_USER_NAME_KEY, privateMessage.getAuthor());
|
||||||
|
@ -1022,11 +1022,11 @@ public class ViewUserDetailActivity extends BaseActivity implements SortTypeSele
|
|||||||
@Override
|
@Override
|
||||||
public boolean onCreateOptionsMenu(Menu menu) {
|
public boolean onCreateOptionsMenu(Menu menu) {
|
||||||
getMenuInflater().inflate(R.menu.view_user_detail_activity, menu);
|
getMenuInflater().inflate(R.menu.view_user_detail_activity, menu);
|
||||||
if(mAccountName.equals(username)){ // Hide some menus
|
if (username.equals(mAccountName)) {
|
||||||
menu.findItem(R.id.action_send_private_message_view_user_detail_activity).setVisible(false);
|
menu.findItem(R.id.action_send_private_message_view_user_detail_activity).setVisible(false);
|
||||||
menu.findItem(R.id.action_report_view_user_detail_activity).setVisible(false);
|
menu.findItem(R.id.action_report_view_user_detail_activity).setVisible(false);
|
||||||
menu.findItem(R.id.action_block_user_view_user_detail_activity).setVisible(false);
|
menu.findItem(R.id.action_block_user_view_user_detail_activity).setVisible(false);
|
||||||
}else { // Hide Edit Profile menu
|
} else {
|
||||||
menu.findItem(R.id.action_edit_profile_view_user_detail_activity).setVisible(false);
|
menu.findItem(R.id.action_edit_profile_view_user_detail_activity).setVisible(false);
|
||||||
}
|
}
|
||||||
applyMenuItemTheme(menu);
|
applyMenuItemTheme(menu);
|
||||||
|
@ -1494,7 +1494,7 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter<Post, RecyclerVie
|
|||||||
imageRequestBuilder.apply(RequestOptions.bitmapTransform(new BlurTransformation(50, 10)))
|
imageRequestBuilder.apply(RequestOptions.bitmapTransform(new BlurTransformation(50, 10)))
|
||||||
.into(((PostWithPreviewTypeViewHolder) holder).imageView);
|
.into(((PostWithPreviewTypeViewHolder) holder).imageView);
|
||||||
} else {
|
} else {
|
||||||
imageRequestBuilder.override(preview.getPreviewWidth(), preview.getPreviewHeight()).into(((PostWithPreviewTypeViewHolder) holder).imageView);
|
imageRequestBuilder.override(preview.getPreviewWidth(), preview.getPreviewHeight()).centerInside().into(((PostWithPreviewTypeViewHolder) holder).imageView);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (holder instanceof PostCompactBaseViewHolder) {
|
} else if (holder instanceof PostCompactBaseViewHolder) {
|
||||||
|
Loading…
Reference in New Issue
Block a user