delete action buttons colors
This commit is contained in:
parent
36eec7cb98
commit
a277bb8826
3 changed files with 7 additions and 5 deletions
|
@ -28,7 +28,7 @@
|
|||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_margin="16dp"
|
||||
android:src="@drawable/map_quick_action"
|
||||
android:src="@drawable/ic_action_plus"
|
||||
app:backgroundTint="@color/dashboard_blue"/>
|
||||
|
||||
</RelativeLayout>
|
|
@ -2472,7 +2472,7 @@ If you need help with OsmAnd application, please contact our support team: suppo
|
|||
<string name="dialog_add_action_title">Add Action</string>
|
||||
<string name="dialog_add_action_subhead">Create item</string>
|
||||
<string name="quick_actions_delete">Delete Action</string>
|
||||
<string name="quick_actions_delete_text">Are you sure you want to delete \"%s\" Action</string>
|
||||
<string name="quick_actions_delete_text">Are you sure you want to delete \"%s\" Action?</string>
|
||||
<string name="btn_dismiss">Dismiss</string>
|
||||
<string name="quick_favorites_show_favorites_dialog">Show favorites dialog</string>
|
||||
<string name="quick_favorites_name_preset">Name preset</string>
|
||||
|
|
|
@ -11,6 +11,7 @@ import android.support.v4.app.Fragment;
|
|||
import android.support.v4.content.ContextCompat;
|
||||
import android.support.v4.view.MotionEventCompat;
|
||||
import android.support.v7.app.AlertDialog;
|
||||
import android.support.v7.view.ContextThemeWrapper;
|
||||
import android.support.v7.widget.LinearLayoutManager;
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
import android.support.v7.widget.Toolbar;
|
||||
|
@ -148,7 +149,7 @@ public class QuickActionListFragment extends BaseOsmAndFragment implements Quick
|
|||
}
|
||||
|
||||
void createAndShowDeleteDialog(final int itemPosition, final String itemName) {
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(getContext(), R.style.OsmandLightTheme));
|
||||
builder.setTitle(R.string.quick_actions_delete);
|
||||
builder.setMessage(getResources().getString(R.string.quick_actions_delete_text, itemName));
|
||||
builder.setIcon(getMyApplication().getIconsCache().getThemedIcon(R.drawable.ic_action_delete_dark));
|
||||
|
@ -163,8 +164,9 @@ public class QuickActionListFragment extends BaseOsmAndFragment implements Quick
|
|||
dialog.dismiss();
|
||||
}
|
||||
});
|
||||
AlertDialog dialog = builder.create();
|
||||
dialog.show();
|
||||
AlertDialog dialog = builder.show();
|
||||
dialog.getButton(DialogInterface.BUTTON_NEGATIVE).setTextColor(ContextCompat.getColor(getContext(), R.color.dashboard_blue));
|
||||
dialog.getButton(DialogInterface.BUTTON_POSITIVE).setTextColor(ContextCompat.getColor(getContext(), R.color.dashboard_blue));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue