Skip to content

Commit

Permalink
Fix #69 (nice)
Browse files Browse the repository at this point in the history
  • Loading branch information
grishka committed Jan 21, 2023
1 parent ddfeaab commit 7bb280e
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -45,26 +45,26 @@ public Attachment(@ParcelProperty("blurhash") String blurhash){

public int getWidth(){
if(meta==null)
return 0;
return 1920;
if(meta.width>0)
return meta.width;
if(meta.original!=null && meta.original.width>0)
return meta.original.width;
if(meta.small!=null && meta.small.width>0)
return meta.small.width;
return 0;
return 1920;
}

public int getHeight(){
if(meta==null)
return 0;
return 1080;
if(meta.height>0)
return meta.height;
if(meta.original!=null && meta.original.height>0)
return meta.original.height;
if(meta.small!=null && meta.small.height>0)
return meta.small.height;
return 0;
return 1080;
}

public double getDuration(){
Expand Down

0 comments on commit 7bb280e

Please sign in to comment.