I hereby claim:
- I am jobinlawrance on github.
- I am jobinlawrance (https://keybase.io/jobinlawrance) on keybase.
- I have a public key whose fingerprint is DFFC 50D3 6D39 0028 AB84 CFF1 A6BB ABB4 C8A1 DF91
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#! /usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
"""A command line utility for recusively extracting nested tar archives.""" | |
__author__ = "Pushpak Dagade (पुष्पक दगड़े)" | |
__date__ = "$4 July, 2011 3:00:00 PM$" | |
import os | |
import sys |
#! /usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
"""A command line utility for recusively extracting nested tar archives.""" | |
__author__ = "Pushpak Dagade (पुष्पक दगड़े)" | |
__date__ = "$4 July, 2011 3:00:00 PM$" | |
import os | |
import sys |
#! /usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
"""A command line utility for recusively extracting nested tar archives.""" | |
__author__ = "Pushpak Dagade (पुष्पक दगड़े)" | |
__date__ = "$4 July, 2011 3:00:00 PM$" | |
import os | |
import sys |
<application> | |
<provider | |
android:name=".sqlite.TeamProvider" | |
android:authorities="com.jobinlawrance" | |
android:grantUriPermissions="true" | |
android:exported="true"/> | |
</application> | |
<!-- Handle uri permissions in a better way--> |
# Built application files | |
*.apk | |
!test-butler-app-1.3.1.apk | |
*.ap_ | |
# Files for the ART/Dalvik VM | |
*.dex | |
# Java class files | |
*.class |
class MainActivity : AppCompatActivity() { | |
val mainFragment = MainFragment("Ready to crash") | |
override fun onCreate(savedInstanceState: Bundle?) { | |
// the usual stuff | |
supportFragmentManager.beginTransaction() | |
.add(R.layout.fragmentContainerView, mainFragment) | |
.commit() | |
} |
class MainActivity : AppCompatActivity() { | |
private val mainfactory = MainFragmentFactory("Now this won't crash") | |
private lateinit var mainFragment: MainFragment | |
override fun onCreate(savedInstanceState: Bundle?) { | |
supportFragmentManager.factory = mainfactory //This has to be done before super call | |
super.onCreate(savesInstanceState) | |
mainFragment = supportFragmentManager.fragmentFactory.instantiate(classLoader, MainFragmentFactory::class.java.name) |
inline fun <reified T : Fragment> AppCompatActivity.fragmentFromFactory(): Lazy<T> { | |
return lazy { | |
supportFragmentManager.fragmentFactory.instantiate(classLoader, T::class.java.name) as T | |
} | |
} |
class MainActivity : AppCompatActivity() { | |
private val mainFragment by fragmentFromFactory<MainFragment>() | |
override fun onCreate(savedInstanceState: Bundle?) { | |
setupKoinFragmentFactory() //This has to be done before super call | |
super.onCreate(savesInstanceState) | |
supportFragmentManager.beginTransaction() | |
.add(R.layout.fragmentContainerView, mainFragment) |