am: 3c51422
* commit '3c5142206751fd2a8a8d34f07d555e56dc9e6d71':
Fix user photo popup layout for RTL
Change-Id: Iee89eb2b252c6fdf920fa84eafd538d7178f0a58
This commit is contained in:
@@ -37,6 +37,7 @@ import android.provider.ContactsContract.DisplayPhoto;
|
|||||||
import android.provider.MediaStore;
|
import android.provider.MediaStore;
|
||||||
import android.support.v4.content.FileProvider;
|
import android.support.v4.content.FileProvider;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
import android.view.Gravity;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
import android.widget.AdapterView;
|
import android.widget.AdapterView;
|
||||||
@@ -169,6 +170,7 @@ public class EditUserPhotoController {
|
|||||||
final int width = Math.max(mImageView.getWidth(), context.getResources()
|
final int width = Math.max(mImageView.getWidth(), context.getResources()
|
||||||
.getDimensionPixelSize(R.dimen.update_user_photo_popup_min_width));
|
.getDimensionPixelSize(R.dimen.update_user_photo_popup_min_width));
|
||||||
listPopupWindow.setWidth(width);
|
listPopupWindow.setWidth(width);
|
||||||
|
listPopupWindow.setDropDownGravity(Gravity.START);
|
||||||
|
|
||||||
listPopupWindow.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
listPopupWindow.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user