mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 05:13:53 +01:00
This commit is contained in:
parent
711a1db548
commit
c17a1f90ad
2 changed files with 29 additions and 19 deletions
|
|
@ -7,6 +7,8 @@ import android.content.Intent;
|
|||
import android.graphics.Bitmap;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.core.content.FileProvider;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
import androidx.appcompat.widget.Toolbar;
|
||||
|
|
@ -127,7 +129,7 @@ public class AchievementsActivity extends NavigationBaseActivity {
|
|||
int width = displayMetrics.widthPixels;
|
||||
|
||||
// Used for the setting the size of imageView at runtime
|
||||
RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams)
|
||||
ConstraintLayout.LayoutParams params = (ConstraintLayout.LayoutParams)
|
||||
imageView.getLayoutParams();
|
||||
params.height = (int) (height * BADGE_IMAGE_HEIGHT_RATIO);
|
||||
params.width = (int) (width * BADGE_IMAGE_WIDTH_RATIO);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue