Fix status bar problems
parent
a97e8ea93e
commit
09bb2f2149
|
@ -37,7 +37,7 @@
|
|||
android:name=".views.ModDetailActivity"
|
||||
android:label="@string/mod_title"
|
||||
android:parentActivityName=".views.ModListActivity"
|
||||
android:theme="@style/AppTheme.NoActionBar">
|
||||
android:theme="@style/AppTheme.NoStatusBar">
|
||||
<meta-data
|
||||
android:name="android.support.PARENT_ACTIVITY"
|
||||
android:value="com.rubenwardy.minetestmodmanager.views.ModListActivity" />
|
||||
|
|
|
@ -150,10 +150,10 @@ public class ModDetailActivity
|
|||
Picasso.get()
|
||||
.load(new File(mod.screenshot_uri))
|
||||
.into(target);
|
||||
} else if (!mod.isLocalMod()) {
|
||||
} else if (!mod.isLocalMod() && mod.thumbnail_url != null) {
|
||||
ctoolbar.setTag(target);
|
||||
Picasso.get()
|
||||
.load("https://minetest-mods.rubenwardy.com/screenshot/" + mod.author + "/" + mod.name + "/")
|
||||
.load(mod.thumbnail_url.replace("https://content.minetest.net/thumbnails/1/", "https://content.minetest.net/thumbnails/3/"))
|
||||
.into(target);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
<resources>>
|
||||
|
||||
<style name="AppTheme.NoActionBar">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
<style name="AppTheme.NoStatusBar" parent="AppTheme.NoActionBar">
|
||||
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||
</style>
|
||||
|
|
|
@ -32,6 +32,9 @@
|
|||
<item name="windowNoTitle">true</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.NoStatusBar" parent="AppTheme.NoActionBar">
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
|
||||
|
||||
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
|
||||
|
|
Loading…
Reference in New Issue