### Drafts Features - A new drafts page has been included This is an important feature That NEEDED to b added as there is currently an issue connecting to Steemit. Whenever you attempt to submit a new post and there is a network issue, or you simply just leave the application, a draft will automatically be saved into your device's storage. You can find all of your saved drafts on the drafts tab.  ### How did you implement it? **1.** The first that I had to do was to [create a new database table](https://github.com/edTheGuy00/Mixion/commit/cfc6832d81172c62e59566ee8756b60b6b975fd0) along with queries to the new table and then the Fragment (page) that displays the Drafts. **2.** Secondly, I had to [add all the calls into the existing repository class](https://github.com/edTheGuy00/Mixion/commit/7e4f12843ddf93d0ec19d25682c3673a91fbe51f) so that they can be easily accessible from wherever needed. One of my favorite things to do is to wrap these calls in RxJava. **3.** After these two things were done, [now we are ready to start displaying](https://github.com/edTheGuy00/Mixion/commit/a32a80cd9daaab3a552734377b8ebc63c2e63738) drafts and also adding functionality for saving drafts. **4.** Next was to [Open a draft](https://github.com/edTheGuy00/Mixion/commit/bc17b5cfe089e3678b6e446e734ef929ab32b255) back into the editor and continue writing. **5.** I also added an [update function](https://github.com/edTheGuy00/Mixion/commit/3baa7596d7cb7392b9feb60ef7f17671a780f5c8) so you can actually keep on editing your perfect post throughout the day. **6.** The last thing there was left to do was to [delete unwanted drafts](https://github.com/edTheGuy00/Mixion/commit/f88d6d0b78c0c7da41a8cbf31b30563e53ff1610)  ### Crash Fixes and Posting not working - About 2 days ago the posting feature completely stopped working and Mixion would actually crash. This was due to breaking changes on the steemit node. Particularly a deprecated API call. I will try to fix this as soon as possible. I was actually in the process of integrating voting and commenting features when this broke, which prompted me to implement the draft feature first and then figure out whats wrong and how to fix it. It seems like @dez1337 , the developer of @steemj , has completely disappeared since Mid January. He was very active on GitHub and answering questions, but he stopped all of a sudden. There are still [Open pull requests](https://github.com/marvin-we/steem-java-api-wrapper/pull/218) that can fix the current issue in Mixion. At this point I'm concerned whether he is alright or not, last we heard of him was that he was going out on a business trip. I hope he is alright. ## Code Changes [Mar 23 - Mar 24](https://github.com/edTheGuy00/Mixion/commits/dev) ## Verification  <br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@edgar-trem/drafts-feature-added-to-mixion-temp-fix-to-crashing-post-editor">Utopian.io - Rewarding Open Source Contributors</a></em><hr/>
author | edgar-trem | ||||||
---|---|---|---|---|---|---|---|
permlink | drafts-feature-added-to-mixion-temp-fix-to-crashing-post-editor | ||||||
category | utopian-io | ||||||
json_metadata | "{"community":"utopian","app":"utopian/1.0.0","format":"markdown","repository":{"id":108326134,"name":"Mixion","full_name":"edTheGuy00/Mixion","html_url":"https://github.com/edTheGuy00/Mixion","fork":false,"owner":{"login":"edTheGuy00"}},"pullRequests":[],"platform":"github","type":"development","tags":["utopian-io","steemit","android"],"users":["dez1337","steemj"],"links":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1521951523/g0r7zti9fpqnuvhmhioa.png","https://github.com/edTheGuy00/Mixion/commit/cfc6832d81172c62e59566ee8756b60b6b975fd0","https://github.com/edTheGuy00/Mixion/commit/7e4f12843ddf93d0ec19d25682c3673a91fbe51f","https://github.com/edTheGuy00/Mixion/commit/a32a80cd9daaab3a552734377b8ebc63c2e63738","https://github.com/edTheGuy00/Mixion/commit/bc17b5cfe089e3678b6e446e734ef929ab32b255","https://github.com/edTheGuy00/Mixion/commit/3baa7596d7cb7392b9feb60ef7f17671a780f5c8","https://github.com/edTheGuy00/Mixion/commit/f88d6d0b78c0c7da41a8cbf31b30563e53ff1610","https://res.cloudinary.com/hpiynhbhq/image/upload/v1521953113/m0hiueqeculqkebrqpfl.png","https://github.com/marvin-we/steem-java-api-wrapper/pull/218","https://github.com/edTheGuy00/Mixion/commits/dev","https://steemit-production-imageproxy-thumbnail.s3.amazonaws.com/U5dtthjB8iXHZoacAG4LD2xf2Ndn7cu_1680x8400"],"image":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1521951523/g0r7zti9fpqnuvhmhioa.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1521953113/m0hiueqeculqkebrqpfl.png","https://steemit-production-imageproxy-thumbnail.s3.amazonaws.com/U5dtthjB8iXHZoacAG4LD2xf2Ndn7cu_1680x8400"],"moderator":{"account":"emrebeyler","time":"2018-03-27T08:52:41.072Z","reviewed":true,"pending":false,"flagged":false},"questions":[{"question":"Is the project description formal?","answers":[{"value":"Yes itβs straight to the point","selected":true,"score":10},{"value":"Need more description ","selected":false,"score":5},{"value":"Not too descriptive","selected":false,"score":0}],"selected":0},{"question":"Is the language / grammar correct?","answers":[{"value":"Yes","selected":true,"score":20},{"value":"A few mistakes","selected":false,"score":10},{"value":"It's pretty bad","selected":false,"score":0}],"selected":0},{"selected":0,"answers":[{"score":10,"selected":true,"value":"Yes"},{"score":5,"selected":false,"value":"Partially"},{"score":0,"selected":false,"value":"No"}],"question":"Was the template followed?"},{"selected":1,"answers":[{"score":20,"selected":false,"value":"Very High"},{"score":16,"selected":true,"value":"High"},{"score":12,"selected":false,"value":"Medium"},{"score":7,"selected":false,"value":"Low"},{"score":3,"selected":false,"value":"Very Low"}],"question":"How do you rate the amount of work?"},{"question":"How do you rate the impact on the Project?","answers":[{"value":"Very High","selected":false,"score":20},{"value":"High","selected":false,"score":16},{"value":"Medium","selected":true,"score":12},{"value":"Low","selected":false,"score":7},{"value":"Very Low","selected":false,"score":3}],"selected":2}],"score":60}" | ||||||
created | 2018-03-25 05:08:30 | ||||||
last_update | 2018-03-27 08:52:42 | ||||||
depth | 0 | ||||||
children | 3 | ||||||
last_payout | 2018-04-01 05:08:30 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 45.073 HBD | ||||||
curator_payout_value | 20.013 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 3,321 | ||||||
author_reputation | 4,926,579,982,162 | ||||||
root_title | "Drafts Feature added to Mixion, Temp fix to crashing Post editor. " | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 46,444,732 | ||||||
net_rshares | 30,975,956,798,540 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
mys | 0 | 36,969,733,488 | 50% | ||
cifer | 0 | 7,563,151,696 | 45% | ||
minnowhub | 0 | 4,604,100,380 | 70% | ||
hsynterkr | 0 | 8,723,692,476 | 100% | ||
anadolu | 0 | 30,323,317,462 | 10% | ||
utopian-io | 0 | 30,823,157,686,263 | 20% | ||
zapncrap | 0 | 8,153,811,618 | 30% | ||
yorkchinese | 0 | 5,555,239,719 | 70% | ||
crypaf | 0 | 631,385,086 | 100% | ||
hayirhah | 0 | 176,528,314 | 8.5% | ||
curx | 0 | 8,187,746,087 | 30% | ||
coinmeria | 0 | 309,332,707 | 5% | ||
bybrawe | 0 | 142,560,378 | 5% | ||
mamicco | 0 | 1,267,150,848 | 100% | ||
supreme-verdict | 0 | 31,034,258,659 | 100% | ||
steemnova | 0 | 2,164,782,370 | 50% | ||
fawakatube | 0 | 175,581,243 | 100% | ||
phreq | 0 | 569,415,071 | 100% | ||
jeftek | 0 | 5,634,781,127 | 100% | ||
tanzil2020 | 0 | 612,543,548 | 100% |
Thank you for the contribution. It has been approved. You can contact us on [Discord](https://discord.gg/uTyJkNm). **[[utopian-moderator]](https://utopian.io/moderators)**
author | emrebeyler |
---|---|
permlink | re-edgar-trem-drafts-feature-added-to-mixion-temp-fix-to-crashing-post-editor-20180327t085247288z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"} |
created | 2018-03-27 08:52:48 |
last_update | 2018-03-27 08:52:48 |
depth | 1 |
children | 1 |
last_payout | 2018-04-03 08:52:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 172 |
author_reputation | 448,535,049,068,622 |
root_title | "Drafts Feature added to Mixion, Temp fix to crashing Post editor. " |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 46,855,935 |
net_rshares | 2,887,297,998 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
edgar-trem | 0 | 2,887,297,998 | 100% |
Thanks
author | edgar-trem |
---|---|
permlink | re-emrebeyler-re-edgar-trem-drafts-feature-added-to-mixion-temp-fix-to-crashing-post-editor-20180327t160057447z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"} |
created | 2018-03-27 16:01:00 |
last_update | 2018-03-27 16:01:00 |
depth | 2 |
children | 0 |
last_payout | 2018-04-03 16:01:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 6 |
author_reputation | 4,926,579,982,162 |
root_title | "Drafts Feature added to Mixion, Temp fix to crashing Post editor. " |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 46,923,460 |
net_rshares | 0 |
### Hey @edgar-trem I am @utopian-io. I have just upvoted you! #### Achievements - You have less than 500 followers. Just gave you a gift to help you succeed! - Seems like you contribute quite often. AMAZING! #### Community-Driven Witness! I am the first and only Steem Community-Driven Witness. <a href="https://discord.gg/zTrEMqB">Participate on Discord</a>. Lets GROW TOGETHER! - <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness With SteemConnect</a> - <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy vote to Utopian Witness with SteemConnect</a> - Or vote/proxy on <a href="https://steemit.com/~witnesses">Steemit Witnesses</a> [](https://steemit.com/~witnesses) **Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x**
author | utopian-io |
---|---|
permlink | re-edgar-trem-drafts-feature-added-to-mixion-temp-fix-to-crashing-post-editor-20180327t122151928z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"} |
created | 2018-03-27 12:21:51 |
last_update | 2018-03-27 12:21:51 |
depth | 1 |
children | 0 |
last_payout | 2018-04-03 12:21:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,086 |
author_reputation | 152,955,367,999,756 |
root_title | "Drafts Feature added to Mixion, Temp fix to crashing Post editor. " |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 46,885,514 |
net_rshares | 0 |