mDualPane = detailsFrame != null && detailsFrame.getVisibility() == View.VISIBLE;
what are the meaning of this line?
why there are those many = ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It would be easier to understand if it was written like this:
Which breaks it into a single
booleanvalue which is returned from theAND(&&) of the two conditions above:And
We first check that
detailsFrame != nullin order to avoid NPE – only then we check that it’s visible by calling:detailsFrame.getVisibility()