-
-
Save illuzor/9f6ee603e5a4a751e780f4d43352f56e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.illuzor.lesson.wallpapers.screens | |
import android.os.Bundle | |
import androidx.fragment.app.Fragment | |
import com.illuzor.lesson.wallpapers.R | |
class WallpaperActivity : AbstractActivity() { | |
override val layoutId = R.layout.activity_with_toolbar | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setToolbar(R.id.toolbar) | |
} | |
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