fix get context
This commit is contained in:
parent
88e05cb405
commit
8eec64dbda
1 changed files with 1 additions and 1 deletions
|
|
@ -196,7 +196,7 @@ public class MainActivity extends AppCompatThemeActivity {
|
|||
public void registerReceiver(Context context) {
|
||||
this.context = context;
|
||||
storage = new Storage(context);
|
||||
encodings = ((AudioApplication) context.getApplicationContext()).encodings;
|
||||
encodings = AudioApplication.from(context).encodings;
|
||||
synchronized (encodings.handlers) {
|
||||
encodings.handlers.add(this);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue