Merge "Remove the toolbar icon from DocumentsUI." into nyc-dev am: c1e1e41
am: 21dc3a3
* commit '21dc3a3f12fd3a5f67c933a6f4f64ac8e57d9274':
Remove the toolbar icon from DocumentsUI.
Change-Id: Ie7b0fe477aeb589df55d6fc28363eaf713456dfa
This commit is contained in:
@@ -147,17 +147,13 @@ class NavigationView {
|
||||
}
|
||||
}
|
||||
|
||||
// Hamburger if drawer is present, else root icon, or sad nullness.
|
||||
// Hamburger if drawer is present, else sad nullness.
|
||||
private @Nullable Drawable getActionBarIcon() {
|
||||
if (mDrawer.isPresent()) {
|
||||
return mToolbar.getContext().getDrawable(R.drawable.ic_hamburger);
|
||||
} else {
|
||||
RootInfo root = mEnv.getCurrentRoot();
|
||||
if (root != null) {
|
||||
return root.loadToolbarIcon(mToolbar.getContext());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
void revealRootsDrawer(boolean open) {
|
||||
|
||||
@@ -334,15 +334,6 @@ public class RootInfo implements Durable, Parcelable, Comparable<RootInfo> {
|
||||
}
|
||||
}
|
||||
|
||||
public Drawable loadToolbarIcon(Context context) {
|
||||
if (derivedIcon != 0) {
|
||||
return IconUtils.applyTintAttr(context, derivedIcon,
|
||||
android.R.attr.colorControlNormal);
|
||||
} else {
|
||||
return IconUtils.loadPackageIcon(context, authority, icon);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (o == null) {
|
||||
|
||||
Reference in New Issue
Block a user