Merge "Fix user photo popup layout for RTL"
am: 6186414
* commit '6186414be83ac8b0b92ebe566ca3282dfbc4127a':
Fix user photo popup layout for RTL
Change-Id: Iebf266aa4948a2d24a55ba3876f2e15d085b7112
This commit is contained in:
@@ -36,6 +36,7 @@ import android.provider.MediaStore;
|
|||||||
import android.provider.ContactsContract.DisplayPhoto;
|
import android.provider.ContactsContract.DisplayPhoto;
|
||||||
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;
|
||||||
@@ -161,6 +162,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