theme progress wheels notifications/activities

This commit is contained in:
AndyScherzinger 2017-06-30 17:35:59 +02:00
parent efd009ce2c
commit 40ad53b126
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
2 changed files with 7 additions and 1 deletions

View file

@ -26,6 +26,7 @@ import android.accounts.AuthenticatorException;
import android.accounts.OperationCanceledException;
import android.content.Context;
import android.content.Intent;
import android.graphics.PorterDuff;
import android.os.Bundle;
import android.support.design.widget.BottomNavigationView;
import android.support.v4.widget.SwipeRefreshLayout;
@ -57,6 +58,7 @@ import com.owncloud.android.ui.preview.PreviewImageActivity;
import com.owncloud.android.ui.preview.PreviewImageFragment;
import com.owncloud.android.utils.AnalyticsUtils;
import com.owncloud.android.utils.DisplayUtils;
import com.owncloud.android.utils.ThemeUtils;
import java.io.IOException;
import java.util.ArrayList;
@ -161,8 +163,9 @@ public class ActivitiesListActivity extends FileActivity implements ActivityList
* sets up the UI elements and loads all activity items.
*/
private void setupContent() {
emptyContentIcon.setImageResource(R.drawable.ic_activity_light_grey);
emptyContentProgressBar.getIndeterminateDrawable().setColorFilter(ThemeUtils.primaryAccentColor(),
PorterDuff.Mode.SRC_IN);
setLoadingMessage();
adapter = new ActivityListAdapter(this, this);

View file

@ -27,6 +27,7 @@ import android.accounts.AuthenticatorException;
import android.accounts.OperationCanceledException;
import android.content.Context;
import android.content.Intent;
import android.graphics.PorterDuff;
import android.os.Bundle;
import android.support.design.widget.BottomNavigationView;
import android.support.v4.widget.SwipeRefreshLayout;
@ -160,6 +161,8 @@ public class NotificationsActivity extends FileActivity {
*/
private void setupContent() {
emptyContentIcon.setImageResource(R.drawable.ic_notification_light_grey);
emptyContentProgressBar.getIndeterminateDrawable().setColorFilter(ThemeUtils.primaryAccentColor(),
PorterDuff.Mode.SRC_IN);
setLoadingMessage();
adapter = new NotificationListAdapter(this);