theming the undo bar

This commit is contained in:
Kasun 2019-05-10 01:29:32 +05:30
parent e55bf64bf0
commit c1a22a1320
2 changed files with 5 additions and 2 deletions

View File

@ -103,12 +103,13 @@ public class ReorderTimelinesActivity extends BaseActivity implements OnStartDra
private ManageTimelines timeline;
private boolean isLoadingInstance;
private String oldSearch;
private int theme;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE);
int theme = sharedpreferences.getInt(Helper.SET_THEME, Helper.THEME_DARK);
theme = sharedpreferences.getInt(Helper.SET_THEME, Helper.THEME_DARK);
switch (theme){
case Helper.THEME_LIGHT:
setTheme(R.style.AppTheme);
@ -371,6 +372,8 @@ public class ReorderTimelinesActivity extends BaseActivity implements OnStartDra
@Override
public void onUndo(ManageTimelines manageTimelines, int position) {
if (theme == THEME_LIGHT)
undo_container.setBackgroundColor(getResources().getColor(R.color.mastodonC3));
undo_container.setVisibility(View.VISIBLE);
switch (manageTimelines.getType()){
case TAG:

View File

@ -31,7 +31,7 @@
<RelativeLayout
android:id="@+id/undo_container"
android:visibility="gone"
android:background="@color/mastodonC3"
android:background="@color/notif_black_3"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_alignParentBottom="true"