aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml/docilealligator/infinityforreddit
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-03-27 11:22:26 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-03-27 11:22:26 +0000
commit7e222091c8ae8619c8f3bed297bb248f07177261 (patch)
tree76462ec55b3eecc33bb94a5096c729ea8c20395b /app/src/main/java/ml/docilealligator/infinityforreddit
parent1cfdaf41fa7d4ce4cf7065d13667bef32c27066a (diff)
downloadinfinity-for-reddit-7e222091c8ae8619c8f3bed297bb248f07177261.tar
infinity-for-reddit-7e222091c8ae8619c8f3bed297bb248f07177261.tar.gz
infinity-for-reddit-7e222091c8ae8619c8f3bed297bb248f07177261.tar.bz2
infinity-for-reddit-7e222091c8ae8619c8f3bed297bb248f07177261.tar.lz
infinity-for-reddit-7e222091c8ae8619c8f3bed297bb248f07177261.tar.xz
infinity-for-reddit-7e222091c8ae8619c8f3bed297bb248f07177261.tar.zst
infinity-for-reddit-7e222091c8ae8619c8f3bed297bb248f07177261.zip
Fix some issues of custom theme.
Diffstat (limited to 'app/src/main/java/ml/docilealligator/infinityforreddit')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Activity/AccountSavedThingActivity.java7
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Activity/RulesActivity.java3
2 files changed, 3 insertions, 7 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/AccountSavedThingActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/AccountSavedThingActivity.java
index d95a1735..11062a31 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/AccountSavedThingActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/AccountSavedThingActivity.java
@@ -107,13 +107,6 @@ public class AccountSavedThingActivity extends BaseActivity {
}
}
- int statusBarResourceId = getResources().getIdentifier("status_bar_height", "dimen", "android");
- if (statusBarResourceId > 0) {
- ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) toolbar.getLayoutParams();
- params.topMargin = getResources().getDimensionPixelSize(statusBarResourceId);
- toolbar.setLayoutParams(params);
- }
-
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/RulesActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/RulesActivity.java
index 99027e23..925efd0e 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/RulesActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/RulesActivity.java
@@ -1,6 +1,7 @@
package ml.docilealligator.infinityforreddit.Activity;
import android.content.SharedPreferences;
+import android.content.res.ColorStateList;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
@@ -105,6 +106,7 @@ public class RulesActivity extends BaseActivity {
}
}
+ appBarLayout.setBackgroundColor(mCustomThemeWrapper.getColorPrimary());
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
@@ -131,6 +133,7 @@ public class RulesActivity extends BaseActivity {
protected void applyCustomTheme() {
coordinatorLayout.setBackgroundColor(mCustomThemeWrapper.getBackgroundColor());
applyAppBarLayoutAndToolbarTheme(appBarLayout, toolbar);
+ progressBar.setIndeterminateTintList(ColorStateList.valueOf(mCustomThemeWrapper.getColorAccent()));
errorTextView.setTextColor(mCustomThemeWrapper.getSecondaryTextColor());
}