1
0
mirror of https://codeberg.org/gitnex/GitNex synced 2025-01-25 00:36:58 +01:00

Enhance diff view to not render all files (#274)

Merge branch 'master' into 269-dont-render-files

exlucde certain bin files

Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/274
This commit is contained in:
M M Arif 2020-03-13 19:28:29 +00:00
parent b0d5161c22
commit 0467686cc3

View File

@ -142,7 +142,11 @@ public class FileDiffActivity extends BaseActivity {
String fileExtension = FilenameUtils.getExtension(getFileNameFinal);
fileContentsArray.add(new FileDiffView(getFileNameFinal, appUtil.imageExtension(fileExtension),"", binaryFileFinal));
if(appUtil.imageExtension(FilenameUtils.getExtension(getFileNameFinal))) {
fileContentsArray.add(new FileDiffView(getFileNameFinal, appUtil.imageExtension(fileExtension), "", binaryFileFinal));
}
}
}