Fix blurred images become thumbnails in the compact layout.

This commit is contained in:
Alex Ning 2020-02-21 20:59:30 +08:00
parent a5b24b5500
commit 2dfc2a86b0
2 changed files with 1 additions and 4 deletions

View File

@ -8,7 +8,6 @@ import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
@ -132,8 +131,6 @@ public class LinkResolverActivity extends AppCompatActivity {
}
} else if (path.matches(USER_PATTERN_1)) {
Intent intent = new Intent(this, ViewUserDetailActivity.class);
Log.i("afasfasfsda", "s " + path);
Log.i("afasfasfsda", "s " + path.substring(6));
intent.putExtra(ViewUserDetailActivity.EXTRA_USER_NAME_KEY, path.substring(6));
intent.putExtra(ViewUserDetailActivity.EXTRA_MESSAGE_FULLNAME, messageFullname);
intent.putExtra(ViewUserDetailActivity.EXTRA_NEW_ACCOUNT_NAME, newAccountName);

View File

@ -1323,7 +1323,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
});
if ((post.isNSFW() && mNeedBlurNSFW) || post.isSpoiler() && mNeedBlurSpoiler) {
imageRequestBuilder
.transform(new BlurTransformation(50, 10))
.transform(new BlurTransformation(50, 2))
.into(((PostCompactViewHolder) holder).imageView);
} else {
imageRequestBuilder.into(((PostCompactViewHolder) holder).imageView);