We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8e1bf3 commit a8158b7Copy full SHA for a8158b7
1 file changed
diycode-app/src/main/java/com/gcssloop/diycode/activity/LoginActivity.java
@@ -87,10 +87,15 @@ protected void onStart() {
87
@Override
88
protected void onStop() {
89
super.onStop();
90
- unRegisterKeyboardListener();
91
EventBus.getDefault().unregister(this);
92
}
93
+ @Override
94
+ protected void onDestroy() {
95
+ super.onDestroy();
96
+ unRegisterKeyboardListener();
97
+ }
98
+
99
private void registerKeyboardListener() {
100
final View rootView = getWindow().getDecorView().findViewById(android.R.id.content);
101
rootView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
0 commit comments