Removed unnecessary assets

This commit is contained in:
Viktor De Pasquale
2019-04-27 11:38:31 +02:00
parent 63ea7a70bd
commit cbe64fd559
11 changed files with 0 additions and 949 deletions
@@ -1,42 +0,0 @@
package com.topjohnwu.magisk.view;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.RotateAnimation;
public class ArrowExpandable extends Expandable {
protected Expandable mBase;
private View arrow;
public ArrowExpandable(Expandable base, View arrow) {
mBase = base;
this.arrow = arrow;
}
@Override
public void onExpand() {
mBase.onExpand();
setRotate(new RotateAnimation(0, 180,
Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f));
}
@Override
public void onCollapse() {
mBase.onCollapse();
setRotate(new RotateAnimation(180, 0,
Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f));
}
@Override
public void onSetExpanded(boolean expanded) {
mBase.onSetExpanded(expanded);
if (arrow != null)
arrow.setRotation(expanded ? 180 : 0);
}
private void setRotate(RotateAnimation rotate) {
rotate.setDuration(300);
rotate.setFillAfter(true);
arrow.startAnimation(rotate);
}
}
@@ -1,59 +0,0 @@
package com.topjohnwu.magisk.view;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.topjohnwu.magisk.R;
import butterknife.BindView;
import butterknife.Unbinder;
public class UpdateCardHolder {
@BindView(R.id.status_icon) public ImageView statusIcon;
@BindView(R.id.progress) public ProgressBar progress;
@BindView(R.id.status) public TextView status;
@BindView(R.id.current_version) public TextView currentVersion;
@BindView(R.id.latest_version) public TextView latestVersion;
@BindView(R.id.additional) public TextView additional;
@BindView(R.id.install) public Button install;
public View itemView;
public Unbinder unbinder;
public UpdateCardHolder(LayoutInflater inflater, ViewGroup root) {
itemView = inflater.inflate(R.layout.update_card, root, false);
unbinder = new UpdateCardHolder_ViewBinding(this, itemView);
}
public void setClickable(View.OnClickListener listener) {
itemView.setClickable(true);
itemView.setFocusable(true);
itemView.setOnClickListener(listener);
}
public void setValid(boolean valid) {
progress.setVisibility(View.GONE);
statusIcon.setVisibility(View.VISIBLE);
if (valid) {
install.setVisibility(View.VISIBLE);
latestVersion.setVisibility(View.VISIBLE);
} else {
install.setVisibility(View.GONE);
latestVersion.setVisibility(View.GONE);
}
}
public void reset() {
progress.setVisibility(View.VISIBLE);
statusIcon.setVisibility(View.INVISIBLE);
latestVersion.setVisibility(View.GONE);
install.setVisibility(View.GONE);
status.setText(R.string.checking_for_updates);
}
}