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

Commit f7dcb6da authored by kaiyiz's avatar kaiyiz
Browse files

Dialer: The popup of delete speed dial number is not be changed to RTL.

App does't change the popupmenu to right side in RTL mode.

When create the PopupMenu, set PopupMenu with Gravity.START in Dialer.

Change-Id: Ic1536f867c67e7ebb522fbba78b4ad26f2357fec
CRs-Fixed: 813015
parent 36835138
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@ import android.widget.ListView;
import android.widget.PopupMenu;
import android.widget.QuickContactBadge;
import android.widget.TextView;
import android.view.Gravity;

import com.android.contacts.common.ContactPhotoManager;
import com.android.contacts.common.ContactPhotoManager.DefaultImageRequest;
@@ -306,7 +307,7 @@ public class SpeedDialListActivity extends ListActivity implements
            if (record == null) {
                showAddSpeedDialDialog(number);
            } else {
                PopupMenu pm = new PopupMenu(this, view);
                PopupMenu pm = new PopupMenu(this, view, Gravity.START);
                pm.getMenu().add(number, MENU_REPLACE, 0, R.string.speed_dial_replace);
                pm.getMenu().add(number, MENU_DELETE, 0, R.string.speed_dial_delete);
                pm.setOnMenuItemClickListener(this);