Skip to content

Instantly share code, notes, and snippets.

@illuzor illuzor/WallpaperActivity.kt Secret
Created Sep 22, 2018

What would you like to do?
package com.illuzor.lesson.wallpapers.screens
import android.os.Bundle
import com.illuzor.lesson.wallpapers.R
class WallpaperActivity : AbstractActivity() {
override val layoutId = R.layout.activity_with_toolbar
override fun onCreate(savedInstanceState: Bundle?) {
override fun getFragment(): Fragment {
val args = Bundle()
args.putString("filename", intent.getStringExtra("filename"))
args.putString("category", intent.getStringExtra("category"))
val fragment = WallpaperFragment()
fragment.arguments = args
return fragment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.