Fix file picker theme

pull/437/head
Alex Baker 8 years ago
parent e04e977f32
commit 5cb050a3a4

@ -385,7 +385,7 @@
<activity
android:name=".files.MyFilePickerActivity"
android:label="@string/app_name"
android:theme="@style/FilePickerTheme">
android:theme="@style/Tasks">
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />

@ -4,12 +4,15 @@ import android.os.Bundle;
import com.nononsenseapps.filepicker.FilePickerActivity;
import org.tasks.R;
import org.tasks.injection.ActivityModule;
import org.tasks.injection.InjectingApplication;
import org.tasks.themes.Theme;
import javax.inject.Inject;
import static org.tasks.preferences.ResourceResolver.getData;
public class MyFilePickerActivity extends FilePickerActivity {
@Inject Theme theme;
@ -23,5 +26,6 @@ public class MyFilePickerActivity extends FilePickerActivity {
theme.applyThemeAndStatusBarColor(this, getDelegate());
setTitle(null);
super.onCreate(savedInstanceState);
getWindow().getDecorView().setBackgroundColor(getData(this, R.attr.asContentBackground));
}
}

@ -108,16 +108,8 @@
<item name="android:layout_gravity">end|bottom</item>
</style>
<!-- ==================================================== TaskAdapter == -->
<style name="task_list_container"/>
<style name="FilePickerTheme" parent="NNF_BaseTheme.Light">
<item name="nnf_toolbarTheme">?attr/overlay_theme</item>
</style>
<!-- ========================================================= Premium == -->
<style name="TextAppearance.Medium">
<item name="android:textSize">18sp</item>
</style>

@ -18,6 +18,8 @@
<item name="android:textColorPrimary">@color/text_primary</item>
<item name="android:textColorSecondary">@color/text_secondary</item>
<item name="android:textColorTertiary">@color/text_tertiary</item>
<item name="nnf_toolbarTheme">?attr/overlay_theme</item>
<item name="nnf_separator_color">@color/nnf_light_separator_color</item>
</style>
<style name="TasksOverride" parent="Tasks">

Loading…
Cancel
Save