File tree 1 file changed +7
-5
lines changed
app/src/main/java/fr/free/nrw/commons/upload/mediaDetails
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -176,11 +176,13 @@ private void addEtTitleTouchListener() {
176
176
etTitle .setOnTouchListener ((v , event ) -> {
177
177
//2 is for drawable right
178
178
float twelveDpInPixels = convertDpToPixel (12 , getContext ());
179
- if (event .getAction () == MotionEvent .ACTION_UP && etTitle .getCompoundDrawables () != null
180
- && etTitle .getCompoundDrawables ().length > 2 && etTitle
181
- .getCompoundDrawables ()[2 ].getBounds ()
182
- .contains ((int ) (etTitle .getWidth () - (event .getX () + twelveDpInPixels )),
183
- (int ) (event .getY () - twelveDpInPixels ))) {
179
+ if ((event .getAction () == MotionEvent .ACTION_UP )
180
+ && (etTitle .getCompoundDrawables () != null )
181
+ && (etTitle .getCompoundDrawables ().length > 2 )
182
+ && (etTitle .getCompoundDrawables ()[2 ] != null )
183
+ && etTitle .getCompoundDrawables ()[2 ].getBounds ()
184
+ .contains ((int ) (etTitle .getWidth () - (event .getX () + twelveDpInPixels )),
185
+ (int ) (event .getY () - twelveDpInPixels ))) {
184
186
showInfoAlert (R .string .media_detail_title , R .string .title_info );
185
187
return true ;
186
188
}
You can’t perform that action at this time.
0 commit comments