Skip to content
Snippets Groups Projects
Commit b1d0faa7 authored by John Carlson's avatar John Carlson
Browse files

Just show snackbar of bypass image clicking on debug builds, so I dont forget later

parent 3628e2e1
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
Loading
@@ -14,6 +14,7 @@ import android.widget.TextView
import butterknife.BindView
import butterknife.OnClick
import com.commit451.gitlab.App
import com.commit451.gitlab.BuildConfig
import com.commit451.gitlab.R
import com.commit451.gitlab.activity.ProjectActivity
import com.commit451.gitlab.event.ProjectReloadEvent
Loading
Loading
@@ -136,8 +137,10 @@ class ProjectFragment : ButterKnifeFragment() {
super.onCreate(savedInstanceState)
bypass = Bypass(activity)
bypass.setImageSpanClickListener { view, imageSpan, s ->
Snackbar.make(swipeRefreshLayout, s, Snackbar.LENGTH_LONG)
.show()
if (BuildConfig.DEBUG) {
Snackbar.make(swipeRefreshLayout, s, Snackbar.LENGTH_LONG)
.show()
}
}
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment