mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
Menu button fix.
This commit is contained in:
parent
f8675cf783
commit
760b446daa
@ -807,6 +807,10 @@ public class KiwixMobileFragment extends Fragment {
|
||||
} else {
|
||||
getActivity().finish();
|
||||
}
|
||||
break;
|
||||
case KeyEvent.KEYCODE_MENU:
|
||||
getActivity().openOptionsMenu();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -26,11 +26,17 @@ import android.graphics.Typeface;
|
||||
import android.os.Handler;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.util.TypedValue;
|
||||
import android.view.InflateException;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.ListAdapter;
|
||||
import android.widget.ListView;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.ArrayList;
|
||||
@ -207,6 +213,8 @@ public class LanguageUtils {
|
||||
@Override
|
||||
public View onCreateView(String name, Context context, AttributeSet attrs) {
|
||||
|
||||
Log.e("kiwix1", name);
|
||||
|
||||
// Apply the custom font, if the xml tag equals "TextView", "EditText" or "AutoCompleteTextView"
|
||||
if (name.equalsIgnoreCase("TextView")
|
||||
|| name.equalsIgnoreCase("EditText")
|
||||
@ -236,6 +244,7 @@ public class LanguageUtils {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user