Fix #10796
This commit is contained in:
parent
0bf7a587af
commit
23ff6a54cf
3 changed files with 12 additions and 9 deletions
|
@ -57,9 +57,6 @@ public abstract class MenuBottomSheetDialogFragment extends BottomSheetDialogFra
|
||||||
private LinearLayout itemsContainer;
|
private LinearLayout itemsContainer;
|
||||||
private LinearLayout buttonsContainer;
|
private LinearLayout buttonsContainer;
|
||||||
|
|
||||||
@StringRes
|
|
||||||
protected int dismissButtonStringRes = R.string.shared_string_cancel;
|
|
||||||
|
|
||||||
public void setUsedOnMap(boolean usedOnMap) {
|
public void setUsedOnMap(boolean usedOnMap) {
|
||||||
this.usedOnMap = usedOnMap;
|
this.usedOnMap = usedOnMap;
|
||||||
}
|
}
|
||||||
|
@ -261,11 +258,7 @@ public abstract class MenuBottomSheetDialogFragment extends BottomSheetDialogFra
|
||||||
|
|
||||||
@StringRes
|
@StringRes
|
||||||
protected int getDismissButtonTextId() {
|
protected int getDismissButtonTextId() {
|
||||||
return dismissButtonStringRes;
|
return R.string.shared_string_cancel;
|
||||||
}
|
|
||||||
|
|
||||||
protected void setDismissButtonTextId(@StringRes int stringRes) {
|
|
||||||
dismissButtonStringRes = stringRes;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected int getDismissButtonHeight(){
|
protected int getDismissButtonHeight(){
|
||||||
|
|
|
@ -143,6 +143,12 @@ public class SaveGPXBottomSheetFragment extends MenuBottomSheetDialogFragment {
|
||||||
return UiUtilities.DialogButtonType.SECONDARY;
|
return UiUtilities.DialogButtonType.SECONDARY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int getDismissButtonTextId() {
|
||||||
|
return R.string.shared_string_close;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getRightBottomButtonTextId() {
|
protected int getRightBottomButtonTextId() {
|
||||||
return R.string.shared_string_open_track;
|
return R.string.shared_string_open_track;
|
||||||
|
|
|
@ -27,10 +27,14 @@ public abstract class AppModesBottomSheetDialogFragment<T extends AbstractProfil
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setDismissButtonTextId(R.string.shared_string_close);
|
|
||||||
getData();
|
getData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int getDismissButtonTextId() {
|
||||||
|
return R.string.shared_string_close;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDismiss(DialogInterface dialog) {
|
public void onDismiss(DialogInterface dialog) {
|
||||||
super.onDismiss(dialog);
|
super.onDismiss(dialog);
|
||||||
|
|
Loading…
Reference in a new issue