Skip to content

Commit 362c2cd

Browse files
fix design issue since splash screen was added
1 parent d62ce1f commit 362c2cd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/SettingsActivity.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import android.content.DialogInterface.OnClickListener;
3131
import android.content.Intent;
3232
import android.content.res.Configuration;
33+
import android.content.res.Resources;
3334
import android.graphics.PorterDuff;
3435
import android.graphics.drawable.Drawable;
3536
import android.os.AsyncTask;
@@ -55,6 +56,7 @@
5556
import android.support.v7.widget.AppCompatSpinner;
5657
import android.support.v7.widget.Toolbar;
5758
import android.util.AttributeSet;
59+
import android.util.TypedValue;
5860
import android.view.LayoutInflater;
5961
import android.view.MenuItem;
6062
import android.view.View;
@@ -153,6 +155,12 @@ public void onClick(View v) {
153155
}
154156
});
155157
}
158+
159+
TypedValue typedValue = new TypedValue();
160+
Resources.Theme theme = getTheme();
161+
theme.resolveAttribute(R.attr.rssItemListBackground, typedValue, true);
162+
int color = typedValue.data;
163+
getWindow().getDecorView().setBackgroundColor(color);
156164
}
157165

158166
@Override

0 commit comments

Comments
 (0)