File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
android-refimpl-app/app/src/main/java/com/zoffcc/applications/trifa Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public static boolean check_auto_accept_incoming_filetransfer(Message message)
101101 if (PREF__auto_accept_image )
102102 {
103103 if (get_filetransfer_filesize_from_id (message .filetransfer_id ) <=
104- AUTO_ACCEPT_FT_MAX_IMAGE_SIZE_IN_MB * 1024 *
104+ ( long ) AUTO_ACCEPT_FT_MAX_IMAGE_SIZE_IN_MB * 1024 *
105105 1024 ) // if file size is smaller than 12 MByte accept FT
106106 {
107107 if (mimeType .startsWith ("image/" ))
@@ -129,7 +129,7 @@ public static boolean check_auto_accept_incoming_filetransfer(Message message)
129129 if (PREF__auto_accept_video )
130130 {
131131 if (get_filetransfer_filesize_from_id (message .filetransfer_id ) <=
132- AUTO_ACCEPT_FT_MAX_VIDEO_SIZE_IN_MB * 1024 *
132+ ( long ) AUTO_ACCEPT_FT_MAX_VIDEO_SIZE_IN_MB * 1024 *
133133 1024 ) // if file size is smaller than 40 MByte accept FT
134134 {
135135 if (mimeType .startsWith ("video/" ))
@@ -158,7 +158,7 @@ public static boolean check_auto_accept_incoming_filetransfer(Message message)
158158 if (PREF__auto_accept_all_upto )
159159 {
160160 if (get_filetransfer_filesize_from_id (message .filetransfer_id ) <=
161- AUTO_ACCEPT_FT_MAX_ANYKIND_SIZE_IN_MB * 1014 *
161+ ( long ) AUTO_ACCEPT_FT_MAX_ANYKIND_SIZE_IN_MB * 1014 *
162162 1024 ) // if file size is smaller than 200 MByte accept FT
163163 {
164164 if (get_filetransfer_state_from_id (message .filetransfer_id ) == TOX_FILE_CONTROL_PAUSE .value )
You can’t perform that action at this time.
0 commit comments