Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Android: adjust screen orientation based on LCD size.

If the screen size specified is wider than higher specify the orientation as
landscape in AndroidManifest.xml. This usually applies to tablets where Rockbox
in portrait mode feels unnatural.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29951 a1c6a512-1295-4272-9138-f99709370657

+10 -2
+1 -1
android/android.make
··· 68 68 69 69 .PHONY: 70 70 $(MANIFEST): $(MANIFEST_SRC) $(DIRS) 71 - $(call PRINTS,MANIFEST $(@F))sed -e 's/versionName="1.0"/versionName="$(SVNVERSION)"/' $(MANIFEST_SRC) > $(MANIFEST) 71 + $(call PRINTS,MANIFEST $(@F))sed -e 's/versionName="1.0"/versionName="$(SVNVERSION)"/;s/screenOrientation="portrait"/screenOrientation="$(LCDORIENTATION)"/' $(MANIFEST_SRC) > $(MANIFEST) 72 72 73 73 $(R_JAVA) $(AP_): $(MANIFEST) $(RES) | $(DIRS) 74 74 $(call PRINTS,AAPT $(subst $(BUILDDIR)/,,$@))$(AAPT) package -f -m \
+9 -1
tools/configure
··· 28 28 thread_support="ASSEMBLER_THREADS" 29 29 app_lcd_width= 30 30 app_lcd_height= 31 + app_lcd_orientation= 31 32 # 32 33 # Begin Function Definitions 33 34 # ··· 100 101 app_lcd_height="$ARG_LCDHEIGHT" 101 102 fi 102 103 if [ -z "$app_lcd_height" ]; then app_lcd_height="480"; fi 103 - echo "Selected $app_lcd_width x $app_lcd_height resolution" 104 + if [ $app_lcd_width -gt $app_lcd_height ]; then 105 + lcd_orientation="landscape" 106 + else 107 + lcd_orientation="portrait" 108 + fi 109 + echo "Selected $app_lcd_width x $app_lcd_height resolution ($lcd_orientation)" 104 110 ARG_LCDWIDTH=$app_lcd_width 105 111 ARG_LCDHEIGHT=$app_lcd_height 106 112 ··· 3715 3721 -e "s<@PREFIX@<$ARG_PREFIX<g" \ 3716 3722 -e "s<@CMDLINE@<$cmdline<g" \ 3717 3723 -e "s<@SDLCONFIG@<$sdl<g" \ 3724 + -e "s<@LCDORIENTATION@<$lcd_orientation<g" \ 3718 3725 <<EOF 3719 3726 ## Automatically generated. http://www.rockbox.org/ 3720 3727 ··· 3784 3791 export ROCKBOX_BINARY_PATH=@binpath@ 3785 3792 export ROCKBOX_LIBRARY_PATH=@libpath@ 3786 3793 export SDLCONFIG=@SDLCONFIG@ 3794 + export LCDORIENTATION=@LCDORIENTATION@ 3787 3795 3788 3796 CONFIGURE_OPTIONS=@CMDLINE@ 3789 3797