Open ftc opened 7 years ago
Problem: how do we define an init override? An initializer isn't really an override since it can have a different signature from the parent. Additionally we can have multiple inits.
For example
class Foo{
Foo(int i){}
}
class Bar extends Foo{
Bar(float j, int i){}
}
This is now a more critical problem as the following code:
public class MainActivity extends AppCompatActivity implements View.OnClickListener, MediaPlayer.OnPreparedListener {
MediaPlayer m = new MediaPlayer();
Will cause the "new MediaPlayer()" to be executed in the \<init> callback. So having an [CB]
Trace any android app and the activity initialization looks like the following:
There should be a framework override of on AppCompatActivity.
This is related to isue cuplv/callback-verification#103