create account

Drafts Feature added to Mixion, Temp fix to crashing Post editor. by edgar-trem

View this thread on: hive.blogpeakd.comecency.com
· @edgar-trem · (edited)
$65.09
Drafts Feature added to Mixion, Temp fix to crashing Post editor.
### 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. 

![DraftPage.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1521951523/g0r7zti9fpqnuvhmhioa.png)

### 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)

![drafts.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1521953113/m0hiueqeculqkebrqpfl.png)

### 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

![image](https://steemit-production-imageproxy-thumbnail.s3.amazonaws.com/U5dtthjB8iXHZoacAG4LD2xf2Ndn7cu_1680x8400)
    

<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/>
πŸ‘  , , , , , , , , , , , , , , , , , , ,
properties (23)
authoredgar-trem
permlinkdrafts-feature-added-to-mixion-temp-fix-to-crashing-post-editor
categoryutopian-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}"
created2018-03-25 05:08:30
last_update2018-03-27 08:52:42
depth0
children3
last_payout2018-04-01 05:08:30
cashout_time1969-12-31 23:59:59
total_payout_value45.073 HBD
curator_payout_value20.013 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,321
author_reputation4,926,579,982,162
root_title"Drafts Feature added to Mixion, Temp fix to crashing Post editor. "
beneficiaries
0.
accountutopian.pay
weight2,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id46,444,732
net_rshares30,975,956,798,540
author_curate_reward""
vote details (20)
@emrebeyler ·
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)**
πŸ‘  
properties (23)
authoremrebeyler
permlinkre-edgar-trem-drafts-feature-added-to-mixion-temp-fix-to-crashing-post-editor-20180327t085247288z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-03-27 08:52:48
last_update2018-03-27 08:52:48
depth1
children1
last_payout2018-04-03 08:52:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length172
author_reputation448,535,049,068,622
root_title"Drafts Feature added to Mixion, Temp fix to crashing Post editor. "
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id46,855,935
net_rshares2,887,297,998
author_curate_reward""
vote details (1)
@edgar-trem ·
Thanks
properties (22)
authoredgar-trem
permlinkre-emrebeyler-re-edgar-trem-drafts-feature-added-to-mixion-temp-fix-to-crashing-post-editor-20180327t160057447z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-03-27 16:01:00
last_update2018-03-27 16:01:00
depth2
children0
last_payout2018-04-03 16:01:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length6
author_reputation4,926,579,982,162
root_title"Drafts Feature added to Mixion, Temp fix to crashing Post editor. "
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id46,923,460
net_rshares0
@utopian-io ·
### 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>

[![mooncryption-utopian-witness-gif](https://steemitimages.com/DQmYPUuQRptAqNBCQRwQjKWAqWU3zJkL3RXVUtEKVury8up/mooncryption-s-utopian-io-witness-gif.gif)](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**
properties (22)
authorutopian-io
permlinkre-edgar-trem-drafts-feature-added-to-mixion-temp-fix-to-crashing-post-editor-20180327t122151928z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-03-27 12:21:51
last_update2018-03-27 12:21:51
depth1
children0
last_payout2018-04-03 12:21:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,086
author_reputation152,955,367,999,756
root_title"Drafts Feature added to Mixion, Temp fix to crashing Post editor. "
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id46,885,514
net_rshares0