Source:
<code>private void updateActionBarSpinner() { if (translationItems == null || translationItems.length == 0) { int page = getCurrentPage(); updateActionBarTitle(page); return; } if (translationsSpinnerAdapter == null) { translationsSpinnerAdapter = new TranslationsSpinnerAdapter(this, R.layout.translation_ab_spinner_item, translationItems, translations, quranSettings.getActiveTranslations(), translationItemChangedListener) { @NonNull @Override public View getView(int position, View convertView, @NonNull ViewGroup parent) { int type = super.getItemViewType(position); if (type == 1) { LayoutInflater inflater = getLayoutInflater(); convertView = inflater.inflate(R.layout.translation_ab_spinner_selected, parent, false); }else{ convertView = super.getView(position, convertView, parent); SpinnerHolder holder = (SpinnerHolder) convertView.getTag(); int page = getCurrentPage(); String sura = QuranInfo.getSuraNameFromPage(PagerActivity.this, page, true); holder.title.setText(sura); String desc = QuranInfo.getPageSubtitle(PagerActivity.this, page); holder.subtitle.setText(desc); holder.subtitle.setVisibility(View.VISIBLE); } return convertView; } @Override public View getDropDownView(int position, View convertView, ViewGroup parent) { <START> int type = super.getItemViewType(position); <END> if (type == 1) { LayoutInflater inflater = getLayoutInflater(); convertView = inflater.inflate( R.layout.translation_ab_spinner_more_item, parent, false); TextView tv = (TextView) convertView.findViewById(R.id.textbox); tv.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent i = new Intent(PagerActivity.this, TranslationManagerActivity.class); startActivity(i); } }); }else{ convertView = super.getDropDownView(position, convertView, parent); } return convertView; } }; translationsSpinner.setAdapter(translationsSpinnerAdapter); } ActionBar actionBar = getSupportActionBar(); if (actionBar != null) { actionBar.setDisplayShowTitleEnabled(false); translationsSpinner.setVisibility(View.VISIBLE); } }</code><technical_language>i remove this method altogether</technical_language>

Target:
private void updateActionBarSpinner() { if (translationItems == null || translationItems.length == 0) { int page = getCurrentPage(); updateActionBarTitle(page); return; } if (translationsSpinnerAdapter == null) { translationsSpinnerAdapter = new TranslationsSpinnerAdapter(this, R.layout.translation_ab_spinner_item, translationItems, translations, quranSettings.getActiveTranslations(), translationItemChangedListener) { @NonNull @Override public View getView(int position, View convertView, @NonNull ViewGroup parent) { int type = super.getItemViewType(position); if (type == 1) { LayoutInflater inflater = getLayoutInflater(); convertView = inflater.inflate(R.layout.translation_ab_spinner_selected, parent, false); } else { convertView = super.getView(position, convertView, parent); SpinnerHolder holder = (SpinnerHolder) convertView.getTag(); int page = getCurrentPage(); String sura = QuranInfo.getSuraNameFromPage(PagerActivity.this, page, true); holder.title.setText(sura); String desc = QuranInfo.getPageSubtitle(PagerActivity.this, page); holder.subtitle.setText(desc); holder.subtitle.setVisibility(View.VISIBLE); } return convertView; } }; translationsSpinner.setAdapter(translationsSpinnerAdapter); } ActionBar actionBar = getSupportActionBar(); if (actionBar != null) { actionBar.setDisplayShowTitleEnabled(false); translationsSpinner.setVisibility(View.VISIBLE); } }