also don't compress svg for stickers
This commit is contained in:
parent
80ea832f4d
commit
6037b1fb78
1 changed files with 4 additions and 2 deletions
|
@ -209,6 +209,9 @@ public class SettingsActivity extends XmppActivity implements OnSharedPreference
|
|||
out.flush();
|
||||
out.close();
|
||||
out = null;
|
||||
if (!filename.endsWith(".webp") && !filename.endsWith(".svg")) {
|
||||
compressImageToSticker(newSticker, imageUri, 0);
|
||||
}
|
||||
Toast.makeText(this,R.string.sticker_imported,Toast.LENGTH_LONG).show();
|
||||
xmppConnectionService.forceRescanStickers();
|
||||
} catch (IOException exception) {
|
||||
|
@ -216,7 +219,6 @@ public class SettingsActivity extends XmppActivity implements OnSharedPreference
|
|||
Log.d(Config.LOGTAG, "Could not import sticker" + exception);
|
||||
}
|
||||
}
|
||||
|
||||
currentItem = currentItem + 1;
|
||||
}
|
||||
} else if(data.getData() != null) {
|
||||
|
@ -247,7 +249,7 @@ public class SettingsActivity extends XmppActivity implements OnSharedPreference
|
|||
out.flush();
|
||||
out.close();
|
||||
out = null;
|
||||
if (!filename.endsWith(".webp")) {
|
||||
if (!filename.endsWith(".webp") && !filename.endsWith(".svg")) {
|
||||
compressImageToSticker(newSticker, imageUri, 0);
|
||||
}
|
||||
Toast.makeText(this,R.string.sticker_imported,Toast.LENGTH_LONG).show();
|
||||
|
|
Loading…
Add table
Reference in a new issue