File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
News-Android-App/src/main/java/de/luhmer/owncloudnewsreader Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 3030import android .content .DialogInterface .OnClickListener ;
3131import android .content .Intent ;
3232import android .content .res .Configuration ;
33+ import android .content .res .Resources ;
3334import android .graphics .PorterDuff ;
3435import android .graphics .drawable .Drawable ;
3536import android .os .AsyncTask ;
5556import android .support .v7 .widget .AppCompatSpinner ;
5657import android .support .v7 .widget .Toolbar ;
5758import android .util .AttributeSet ;
59+ import android .util .TypedValue ;
5860import android .view .LayoutInflater ;
5961import android .view .MenuItem ;
6062import 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
You can’t perform that action at this time.
0 commit comments