This file contains hidden or 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
override fun onCreate(savedInstanceState: Bundle?) { | |
var prefs = NewsApplication.get(this).getPrefs() | |
prefs = NewsApplication.get(this).getPrefs() | |
val component = NewsApplication.get(this).applicationComponent.plus(NewsFeedModule()) | |
component.inject(this) | |
super.onCreate(savedInstanceState) | |
binding = DataBindingUtil.setContentView(this, R.layout.activity_news_feed) | |
viewModel = ViewModelProvider(this, viewModelFactory).get(NewsFeedActivityViewModelImpl::class.java) | |
registerLiveDataObservers() |
This file contains hidden or 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
class NewsApplication : Application() { | |
override fun onCreate() { | |
super.onCreate() | |
if(BuildConfig.DEBUG) { | |
Snippet.install(Snippet.MeasuredExecutionPath()) | |
Snippet.newFilter("Carausell") | |
Snippet.addFlag(Snippet.FLAG_METADATA_LINE or Snippet.FLAG_METADATA_THREAD_INFO) | |
} |
This file contains hidden or 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
override fun onCreate(savedInstanceState: Bundle?) { | |
Snippet.capture { // starts the measurement | |
var prefs = NewsApplication.get(this).getPrefs() | |
val component = NewsApplication.get(this).applicationComponent.plus(NewsFeedModule()) | |
component.inject(this) | |
super.onCreate(savedInstanceState) | |
binding = DataBindingUtil.setContentView(this, R.layout.activity_news_feed) | |
viewModel = ViewModelProvider(this, viewModelFactory).get(NewsFeedActivityViewModelImpl::class.java) | |
registerLiveDataObservers() | |
} // ends the measuremement here. |
This file contains hidden or 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
public class SampleApplication extends Application { | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
if(BuildConfig.DEBUG) { | |
Snippet.install(new Snippet.MeasuredExecutionPath()); | |
Snippet.newFilter("SampleFilter"); | |
Snippet.addFlag(Snippet.FLAG_METADATA_LINE | Snippet.FLAG_METADATA_THREAD_INFO); | |
} |
NewerOlder