Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6090ba2c authored by James Kung's avatar James Kung
Browse files

Hide color picker button if calendar cannot be modified

Bug: 8537803
Change-Id: If7630e070b8502973ffa288c4202d5f2a14bf8ab
parent e4e21d40
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -556,11 +556,13 @@ public class EventInfoFragment extends DialogFragment implements OnCheckedChange
                        Log.d("Color", "H:" + hsv[0] + ",S:" + hsv[1] + ",V:" + hsv[2]);
                    }
                }
                if (mCanModifyCalendar) {
                    View button = mView.findViewById(R.id.change_color);
                    if (button != null && mColors.length > 0) {
                        button.setEnabled(true);
                        button.setVisibility(View.VISIBLE);
                    }
                }
                updateMenu();
                break;
            case TOKEN_QUERY_ATTENDEES:
+0 −1
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@

package com.android.calendar.event;

import android.app.Activity;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;