This commit is contained in:
Mariotaku Lee 2016-01-03 18:24:10 +08:00
parent edb3ec506b
commit 43bc5da927
6 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1 @@
base_density:xxxhdpi

Binary file not shown.

View File

@ -150,4 +150,19 @@ task svgToDrawable(type: SvgDrawableTask) {
outputFormat = 'PNG'
outputType = 'drawable'
}
task svgToMipmap(type: SvgDrawableTask) {
// specify where to pick SVG from
from = files('src/main/svg/mipmap')
// specify the android res folder
to = file('src/main/res-svg2png')
// override files only if necessary
overwriteMode = 'ifModified'
// let generate PNG for the following densities only
targetedDensities = ['hdpi', 'mdpi', 'xhdpi', 'xxhdpi', 'xxxhdpi']
// output format of the generated resources
outputFormat = 'PNG'
outputType = 'mipmap'
}

View File

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 95 KiB

View File

@ -1,2 +1,2 @@
# Those files generated on compile, so there's no need to include them in VCSw
# Those files generated on compile, so there's no need to include them in VCS
res-svg2png/

View File

@ -527,7 +527,9 @@ public class BackgroundOperationService extends IntentService implements Constan
final Twitter twitter = TwitterAPIFactory.getTwitterInstance(this, account.account_id, true, true);
final TwitterUpload upload = TwitterAPIFactory.getTwitterInstance(this, account.account_id, true, true, TwitterUpload.class);
final StatusUpdate status = new StatusUpdate(shortenedText);
status.inReplyToStatusId(statusUpdate.in_reply_to_status_id);
if (statusUpdate.in_reply_to_status_id > 0) {
status.inReplyToStatusId(statusUpdate.in_reply_to_status_id);
}
if (statusUpdate.location != null) {
status.location(ParcelableLocation.toGeoLocation(statusUpdate.location));
}