|
@@ -30,7 +30,6 @@ import android.view.View;
|
|
|
import android.widget.FrameLayout;
|
|
|
import android.widget.ImageView;
|
|
|
import android.widget.LinearLayout;
|
|
|
-import android.widget.ProgressBar;
|
|
|
import android.widget.TextView;
|
|
|
|
|
|
import com.owncloud.android.R;
|
|
@@ -46,7 +45,6 @@ import androidx.appcompat.widget.Toolbar;
|
|
|
* Base class providing toolbar registration functionality, see {@link #setupToolbar()}.
|
|
|
*/
|
|
|
public abstract class ToolbarActivity extends BaseActivity {
|
|
|
- private ProgressBar mProgressBar;
|
|
|
private ImageView mPreviewImage;
|
|
|
private FrameLayout mPreviewImageContainer;
|
|
|
private LinearLayout mInfoBox;
|
|
@@ -68,9 +66,6 @@ public abstract class ToolbarActivity extends BaseActivity {
|
|
|
Toolbar toolbar = findViewById(R.id.toolbar);
|
|
|
setSupportActionBar(toolbar);
|
|
|
|
|
|
- mProgressBar = findViewById(R.id.toolbar_progressBar);
|
|
|
- setProgressBarBackgroundColor();
|
|
|
-
|
|
|
mInfoBox = findViewById(R.id.info_box);
|
|
|
mInfoBoxMessage = findViewById(R.id.info_box_message);
|
|
|
|
|
@@ -160,17 +155,6 @@ public abstract class ToolbarActivity extends BaseActivity {
|
|
|
mInfoBox.setVisibility(View.GONE);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Change the visibility for the toolbar's progress bar.
|
|
|
- *
|
|
|
- * @param isVisible visibility of the progress bar
|
|
|
- */
|
|
|
- public void showProgressBar(boolean isVisible) {
|
|
|
- if (mProgressBar != null) {
|
|
|
- mProgressBar.setVisibility(isVisible? View.VISIBLE : View.GONE);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Change the visibility for the toolbar's preview image.
|
|
|
*
|
|
@@ -210,16 +194,4 @@ public abstract class ToolbarActivity extends BaseActivity {
|
|
|
public ImageView getPreviewImageView() {
|
|
|
return mPreviewImage;
|
|
|
}
|
|
|
-
|
|
|
- /**
|
|
|
- * Set the background to to progress bar of the toolbar. The resource should refer to
|
|
|
- * a Drawable object or 0 to remove the background.#
|
|
|
- *
|
|
|
- */
|
|
|
- private void setProgressBarBackgroundColor() {
|
|
|
- if (mProgressBar != null) {
|
|
|
- mProgressBar.setBackgroundColor(ThemeUtils.primaryAppbarColor(this));
|
|
|
- mProgressBar.getIndeterminateDrawable().setColorFilter(ThemeUtils.primaryColor(this), PorterDuff.Mode.SRC_IN);
|
|
|
- }
|
|
|
- }
|
|
|
}
|