forked from TeamNewPipe/NewPipe
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BraveNewPipeLegacy: use getApplicationContext to have a static variab…
…le inside BraveApp In the App.java from main source set there is the static method App.getApp() from which many parts of the application get ApplicationContext. But as the class App inherits from BraveApp and sets the app variable in onCreate() only after the super.onCreate() from BraveApp is called. Therefore App.getApp() has not yet an initialized variable thus we need another way to get the ApplicationContext
- Loading branch information
1 parent
3df1047
commit db53faa
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
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
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