App Details : Fix screenshot theme issue being always light

This commit is contained in:
Mr. Dragon
2019-06-07 11:55:56 +05:30
parent 3c2d86703b
commit 9e720d17be
2 changed files with 15 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ import com.aurora.store.R;
import com.aurora.store.adapter.BigScreenshotsAdapter;
import com.aurora.store.fragment.DetailsFragment;
import com.aurora.store.utility.Log;
import com.aurora.store.utility.ThemeUtil;
import butterknife.BindView;
import butterknife.ButterKnife;
@@ -46,9 +47,13 @@ public class FullscreenImageActivity extends AppCompatActivity {
@BindView(R.id.gallery)
RecyclerView recyclerView;
private ThemeUtil themeUtil = new ThemeUtil();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
themeUtil.onCreate(this);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(
WindowManager.LayoutParams.FLAG_FULLSCREEN,
@@ -59,6 +64,12 @@ public class FullscreenImageActivity extends AppCompatActivity {
onNewIntent(getIntent());
}
@Override
protected void onResume() {
super.onResume();
themeUtil.onResume(this);
}
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);

View File

@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ Aurora Store
~ Copyright (C) 2019, Rahul Kumar Patel <whyorean@gmail.com>
~
@@ -20,6 +19,8 @@
-->
<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/gallery"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="match_parent"
tools:listitem="@layout/item_screenshots_big" />