strings: update german translations

Update german translations for the strings I can translate at least
okay.
This commit is contained in:
OxygenCobalt
2022-05-25 13:20:50 -06:00
parent 444e4299d6
commit ae62572760
4 changed files with 48 additions and 16 deletions
@@ -164,6 +164,10 @@ class MainActivity : AppCompatActivity() {
}
}
/**
* Apply blind padding to accommodate left/right window insets. This is done because
* implementing insets on *phone* landscape mode is pretty impractical.
*/
private fun WindowInsets.applyLeftRightInsets(contentView: View): WindowInsets {
val bars = systemBarInsetsCompat
contentView.updatePadding(left = bars.left, right = bars.right)
@@ -33,14 +33,13 @@ import org.oxycblt.auxio.util.newMainIntent
fun createDefaultWidget(context: Context) = createViews(context, R.layout.widget_default)
/**
* The thin widget is a weird outlier widget intended to work well on strange launchers or
* landscape grid launchers that allow really thin widget sizing.
* The thin widget is a weird outlier widget intended to work well on strange launchers or landscape
* grid launchers that allow really thin widget sizing.
*/
fun createThinWidget(context: Context, state: WidgetComponent.WidgetState) =
createViews(context, R.layout.widget_thin)
.applyMeta(context, state)
.applyBasicControls(context, state)
/**
* The small widget is for 2x2 widgets and just shows the cover art and playback controls. This is
* generally because a Medium widget is too large for this widget size and a text-only widget is too
@@ -107,7 +106,7 @@ private fun RemoteViews.applyCover(
return this
}
private fun RemoteViews.applyBasicControls(
private fun RemoteViews.applyPlayPauseControls(
context: Context,
state: WidgetComponent.WidgetState
): RemoteViews {
@@ -122,6 +121,15 @@ private fun RemoteViews.applyBasicControls(
R.drawable.ic_play
})
return this
}
private fun RemoteViews.applyBasicControls(
context: Context,
state: WidgetComponent.WidgetState
): RemoteViews {
applyPlayPauseControls(context, state)
setOnClickPendingIntent(
R.id.widget_skip_prev, context.newBroadcastIntent(PlaybackService.ACTION_SKIP_PREV))