Changed refresh layout colors

pull/146/head
M66B 6 years ago
parent 3be255e2d2
commit b05cf3e129

@ -32,7 +32,6 @@ import android.os.Handler;
import android.preference.PreferenceManager; import android.preference.PreferenceManager;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.Log; import android.util.Log;
import android.util.TypedValue;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.Menu; import android.view.Menu;
import android.view.MenuInflater; import android.view.MenuInflater;
@ -194,10 +193,9 @@ public class FragmentMessages extends FragmentEx {
// Wire controls // Wire controls
TypedValue tv = new TypedValue(); int colorPrimary = Helper.resolveColor(getContext(), R.attr.colorPrimary);
getContext().getTheme().resolveAttribute(R.attr.colorAccent, tv, true); swipeRefresh.setColorSchemeColors(Color.WHITE, Color.WHITE, Color.WHITE);
swipeRefresh.setColorSchemeColors(tv.data, tv.data, tv.data); swipeRefresh.setProgressBackgroundColorSchemeColor(colorPrimary);
swipeRefresh.setProgressBackgroundColorSchemeColor(Color.WHITE);
swipeRefresh.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() { swipeRefresh.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
@Override @Override
public void onRefresh() { public void onRefresh() {

Loading…
Cancel
Save