Skip to content

Commit

Permalink
Fix crash, with onDestroy activity
Browse files Browse the repository at this point in the history
  • Loading branch information
edTheGuy00 committed Feb 7, 2018
1 parent 72a578f commit f3c75b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/com/taskail/mixion/feed/FeedFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ class FeedFragment : Fragment(),
savedInstanceState: Bundle?): View? {
val view: View= inflater.inflate(R.layout.fragment_feed, container, false)

discussionFromResponse = ArrayList<SteemDiscussion>()

adapter = FeedRVAdapter(discussionFromResponse, feedCallBack)

return view
Expand Down
3 changes: 0 additions & 3 deletions app/src/main/java/com/taskail/mixion/feed/FeedPresenter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@ class FeedPresenter(val feedView: FeedContract.View,
val steemitRepository: SteemitRepository) :
FeedContract.Presenter {

var discussionFromResponse = ArrayList<SteemDiscussion>()
var sortBy = "Trending"

init {
feedView.presenter = this
feedView.discussionFromResponse = discussionFromResponse

steemitRepository.remoteRepository.tag = "steemit"
}

Expand Down

0 comments on commit f3c75b1

Please sign in to comment.