fixed #73
This commit is contained in:
parent
edb3ec506b
commit
43bc5da927
|
@ -0,0 +1 @@
|
||||||
|
base_density:xxxhdpi
|
Binary file not shown.
|
@ -150,4 +150,19 @@ task svgToDrawable(type: SvgDrawableTask) {
|
||||||
outputFormat = 'PNG'
|
outputFormat = 'PNG'
|
||||||
|
|
||||||
outputType = 'drawable'
|
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'
|
||||||
}
|
}
|
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 95 KiB |
|
@ -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/
|
res-svg2png/
|
|
@ -527,7 +527,9 @@ public class BackgroundOperationService extends IntentService implements Constan
|
||||||
final Twitter twitter = TwitterAPIFactory.getTwitterInstance(this, account.account_id, true, true);
|
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 TwitterUpload upload = TwitterAPIFactory.getTwitterInstance(this, account.account_id, true, true, TwitterUpload.class);
|
||||||
final StatusUpdate status = new StatusUpdate(shortenedText);
|
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) {
|
if (statusUpdate.location != null) {
|
||||||
status.location(ParcelableLocation.toGeoLocation(statusUpdate.location));
|
status.location(ParcelableLocation.toGeoLocation(statusUpdate.location));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue