Fix dark theme
This commit is contained in:
parent
b2d49c3143
commit
658177538b
|
@ -264,6 +264,8 @@ public class HomeTimelineFragment extends StatusListFragment implements ToolbarD
|
||||||
E.register(this);
|
E.register(this);
|
||||||
updateUpdateState(GithubSelfUpdater.getInstance().getState());
|
updateUpdateState(GithubSelfUpdater.getInstance().getState());
|
||||||
}
|
}
|
||||||
|
if(currentDonationCampaign!=null)
|
||||||
|
showDonationBanner(currentDonationCampaign);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -618,6 +620,8 @@ public class HomeTimelineFragment extends StatusListFragment implements ToolbarD
|
||||||
if(GithubSelfUpdater.needSelfUpdating()){
|
if(GithubSelfUpdater.needSelfUpdating()){
|
||||||
E.unregister(this);
|
E.unregister(this);
|
||||||
}
|
}
|
||||||
|
donationBanner=null;
|
||||||
|
donationBannerDismissing=false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateUpdateState(GithubSelfUpdater.UpdateState state){
|
private void updateUpdateState(GithubSelfUpdater.UpdateState state){
|
||||||
|
|
|
@ -294,7 +294,6 @@ public class CurrencyAmountInput extends LinearLayout implements CustomViewHelpe
|
||||||
public CurrencySymbolSpan(Paint paint){
|
public CurrencySymbolSpan(Paint paint){
|
||||||
this.paint=new Paint(paint);
|
this.paint=new Paint(paint);
|
||||||
this.paint.setTextSize(paint.getTextSize()*0.66f);
|
this.paint.setTextSize(paint.getTextSize()*0.66f);
|
||||||
this.paint.setAlpha(77);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -304,6 +303,8 @@ public class CurrencyAmountInput extends LinearLayout implements CustomViewHelpe
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void draw(@NonNull Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, @NonNull Paint paint){
|
public void draw(@NonNull Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, @NonNull Paint paint){
|
||||||
|
this.paint.setColor(paint.getColor());
|
||||||
|
this.paint.setAlpha(77);
|
||||||
if(!symbolBeforeAmount)
|
if(!symbolBeforeAmount)
|
||||||
x+=dp(2);
|
x+=dp(2);
|
||||||
canvas.drawText(currentCurrency.symbol, x, top+dp(1.5f)-this.paint.ascent(), this.paint);
|
canvas.drawText(currentCurrency.symbol, x, top+dp(1.5f)-this.paint.ascent(), this.paint);
|
||||||
|
|
Loading…
Reference in New Issue