Remove "Additional actions" title

This commit is contained in:
alex 2018-01-05 20:17:07 +02:00
parent 1b2c81c7b6
commit 871adc8cc6
2 changed files with 3 additions and 19 deletions

View file

@ -22,20 +22,11 @@
tools:background="?attr/bg_color"> tools:background="?attr/bg_color">
<LinearLayout <LinearLayout
android:id="@+id/context_menu_items_container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical"
android:paddingBottom="@dimen/bottom_sheet_content_padding_small"/>
<include layout="@layout/bottom_sheet_dialog_fragment_title"/>
<LinearLayout
android:id="@+id/context_menu_items_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/bottom_sheet_content_padding_small"/>
</LinearLayout>
</android.support.v4.widget.NestedScrollView> </android.support.v4.widget.NestedScrollView>

View file

@ -6,7 +6,6 @@ import android.os.Bundle;
import android.support.annotation.DrawableRes; import android.support.annotation.DrawableRes;
import android.support.annotation.NonNull; import android.support.annotation.NonNull;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
import android.view.ContextThemeWrapper; import android.view.ContextThemeWrapper;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
@ -72,12 +71,6 @@ public class AdditionalActionsBottomSheetDialogFragment extends net.osmand.plus.
mainView.findViewById(R.id.cancel_row).setOnClickListener(dismissOnClickListener); mainView.findViewById(R.id.cancel_row).setOnClickListener(dismissOnClickListener);
mainView.findViewById(R.id.scroll_view_container).setOnClickListener(dismissOnClickListener); mainView.findViewById(R.id.scroll_view_container).setOnClickListener(dismissOnClickListener);
TextView headerTitle = (TextView) mainView.findViewById(R.id.header_title);
if (nightMode) {
headerTitle.setTextColor(ContextCompat.getColor(activity, R.color.ctx_menu_info_text_dark));
}
headerTitle.setText(R.string.additional_actions);
View.OnClickListener onClickListener = new View.OnClickListener() { View.OnClickListener onClickListener = new View.OnClickListener() {
@Override @Override
public void onClick(View view) { public void onClick(View view) {