I can assure you that the method is called also when the application starts. Your issue is another. You are checking for the Filler
condition, but just after setContentView
int x = Button1.getWidth();
int y = Global.getHeight();
int z = Bar.getHeight();
x
, y
, and z
are 0, making the if condition false