Protect the Settings application from potential null pointer exceptions.
Summary: The app bar is not available, causing a null pointer exception. Test: Successful Build on master branch Change-Id: I36849606f6587d6e7f004ae21e1a6e6a5206735a Signed-off-by: Abdelrahman Daim <adaim@meta.com>
This commit is contained in:
@@ -1034,6 +1034,9 @@ public class ManageApplications extends InstrumentedFragment
|
||||
}
|
||||
|
||||
private void autoSetCollapsingToolbarLayoutScrolling() {
|
||||
if (mAppBarLayout == null) {
|
||||
return;
|
||||
}
|
||||
final CoordinatorLayout.LayoutParams params =
|
||||
(CoordinatorLayout.LayoutParams) mAppBarLayout.getLayoutParams();
|
||||
final AppBarLayout.Behavior behavior = new AppBarLayout.Behavior();
|
||||
|
Reference in New Issue
Block a user