开发者

Android - super always gets called last?

开发者 https://www.devze.com 2023-02-21 11:03 出处:网络
To handle orientation changes, im overriding: onConfigurationChanged But regardless of where I make the call to

To handle orientation changes, im overriding:

onConfigurationChanged

But regardless of where I make the call to

super.onConfigurationChanged(config);

The super always gets executed AFTER my code

Is it possible to have code be executed after the super, which is after its rotated?

Edit: I guess there's no way around this. It seems that when you overrid开发者_如何学编程e a function, the super gets executed last no matter what.


set a break point on your super.onConfiguratioNChanged, I highly doubt that "regardless of where [you] put the call" it still calls it last.

0

精彩评论

暂无评论...
验证码 换一张
取 消