Skip to content

Commit

Permalink
Fixing sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatansalas committed Dec 1, 2016
1 parent c9f9bb1 commit 7a03470
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class DetailsInteractor : BaseInteractor() {
//Getting data from somewhere
val data = MockUtils.getMockedData(id)

runOnBackground(Runnable {
runOnUiThread(Runnable {
if (data != null) {
successListener.onSuccess(data)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import android.widget.Button
import android.widget.Toast

import butterknife.BindView
import butterknife.ButterKnife

import io.blackbox_vision.helpers.R
import io.blackbox_vision.helpers.util.MockUtils
Expand All @@ -22,6 +23,7 @@ class DetailsFragment : BaseFragment<DetailsPresenter>(), DetailsView {

override fun onViewCreated(view: View?, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
button = view!!.findViewById(R.id.sample_button) as Button
button.setOnClickListener { v -> presenter!!.findRequiredInformation(MockUtils.SAMPLE) }
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.blackbox_vision.mvphelpers.ui.fragment

import android.os.Bundle
import android.support.annotation.LayoutRes
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
Expand Down

0 comments on commit 7a03470

Please sign in to comment.