forked from organicmaps/organicmaps-tmp
[android] RoutingErrorDialogFragment dialog fix
Signed-off-by: hemanggs <hemangmanhas@gmail.com>
This commit is contained in:
parent
645f17c441
commit
9c7438cb69
1 changed files with 12 additions and 1 deletions
|
@ -2,10 +2,13 @@ package app.organicmaps.routing;
|
|||
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.graphics.Typeface;
|
||||
import android.os.Bundle;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Pair;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
@ -35,7 +38,15 @@ public class RoutingErrorDialogFragment extends BaseRoutingErrorDialogFragment
|
|||
ResultCodesHelper.getDialogTitleSubtitle(requireContext(), mResultCode, mMissingMaps.size());
|
||||
Pair<String, String> titleMessage = resHolder.getTitleMessage();
|
||||
|
||||
builder.setTitle(titleMessage.first);
|
||||
TextView titleView = new TextView(requireContext());
|
||||
titleView.setText(titleMessage.first);
|
||||
titleView.setPadding(65, 32, 32, 16);
|
||||
titleView.setTextSize(18);
|
||||
titleView.setMaxLines(4);
|
||||
titleView.setEllipsize(TextUtils.TruncateAt.END);
|
||||
titleView.setTypeface(null, Typeface.BOLD);
|
||||
builder.setCustomTitle(titleView);
|
||||
|
||||
mMessage = titleMessage.second;
|
||||
builder.setNegativeButton(resHolder.getCancelBtnResId(), null);
|
||||
if (ResultCodesHelper.isDownloadable(mResultCode, mMissingMaps.size()))
|
||||
|
|
Loading…
Add table
Reference in a new issue