Remove unnecessary changes

This commit is contained in:
Vitaliy 2020-06-12 15:46:21 +03:00
parent 68336d36a7
commit ec43a3b530
3 changed files with 2 additions and 4 deletions

View file

@ -425,7 +425,7 @@ public class AndroidUtils {
: ctx.getResources().getColor(R.color.text_color_secondary_light));
}
public static int getTextWidth(Context ctx, float textSize, List<String> titles) {
public static int getTextMaxWidth(float textSize, List<String> titles) {
int width = 0;
for (String title : titles) {
int titleWidth = getTextWidth(textSize, title);

View file

@ -665,8 +665,7 @@ public class UiUtilities {
for (SimplePopUpMenuItem item : items) {
titles.add(String.valueOf(item.getTitle()));
}
float itemWidth =
AndroidUtils.getTextWidth(themedCtx, defaultListTextSize, titles) + contentPadding;
float itemWidth = AndroidUtils.getTextMaxWidth(defaultListTextSize, titles) + contentPadding;
SimplePopUpMenuItemAdapter adapter =
new SimplePopUpMenuItemAdapter(themedCtx, R.layout.popup_menu_item, items);

View file

@ -9,7 +9,6 @@ import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.recyclerview.widget.RecyclerView;