State of QSSecurityFooter refreshes early.
QSSecurityFooter refreshes its state and listens regardless of the expansion of QSPanel. It now knows its size before expansion animation starts and is reported properly. Change-Id: I66e29b4b14c2fbc663704255649515f68f41bd48 Fixes: 80219694 Test: Manual & runtest
This commit is contained in:
@@ -288,6 +288,7 @@ public class QSFragment extends Fragment implements QS, CommandQueue.Callbacks {
|
||||
mHeader.setListening(listening);
|
||||
mFooter.setListening(listening);
|
||||
mQSPanel.setListening(mListening && mQsExpanded);
|
||||
mQSPanel.getFooter().setListening(listening);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -350,7 +350,6 @@ public class QSPanel extends LinearLayout implements Tunable, Callback, Brightne
|
||||
if (mTileLayout != null) {
|
||||
mTileLayout.setListening(listening);
|
||||
}
|
||||
mFooter.setListening(mListening);
|
||||
if (mListening) {
|
||||
refreshAllTiles();
|
||||
}
|
||||
|
||||
@@ -96,6 +96,7 @@ public class QSSecurityFooter implements OnClickListener, DialogInterface.OnClic
|
||||
public void setListening(boolean listening) {
|
||||
if (listening) {
|
||||
mSecurityController.addCallback(mCallback);
|
||||
refreshState();
|
||||
} else {
|
||||
mSecurityController.removeCallback(mCallback);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user