File tree Expand file tree Collapse file tree
src/eu/chainfire/opendelta Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5959 android : layout_height =" wrap_content"
6060 android : orientation =" horizontal" >
6161
62- <ProgressBar
62+ <com .google.android.material.progressindicator.LinearProgressIndicator
6363 android : id =" @+id/progress_bar"
64- style =" ?android:attr/progressBarStyleHorizontal"
65- android : progressTint =" ?android:attr/colorAccent"
66- android : indeterminateTint =" ?android:attr/colorAccent"
64+ android : theme =" @style/Theme.Material3.DynamicColors.DayNight"
6765 android : layout_width =" 0dp"
6866 android : layout_height =" wrap_content"
6967 android : layout_gravity =" center_vertical"
7068 android : layout_weight =" 1"
71- android : max =" 1"
72- android : progress =" 0" />
69+ android : indeterminate =" true"
70+ app : trackThickness =" 16dp"
71+ app : indicatorColor =" ?attr/colorAccent"
72+ app : trackColor =" ?attr/colorSurfaceVariant"
73+ style =" @style/SettingsLibProgressBarStyle.Linear.Expressive" />
7374
7475 </LinearLayout >
7576
Original file line number Diff line number Diff line change 5252import android .view .View ;
5353import android .widget .Button ;
5454import android .widget .ImageView ;
55- import android .widget .ProgressBar ;
5655import android .widget .Space ;
5756import android .widget .TextView ;
5857import android .widget .Toast ;
6160import androidx .activity .result .contract .ActivityResultContracts .RequestPermission ;
6261import androidx .preference .PreferenceManager ;
6362
63+ import com .google .android .material .progressindicator .LinearProgressIndicator ;
64+
6465import eu .chainfire .opendelta .State .StateInt ;
6566
6667import java .io .File ;
@@ -149,7 +150,7 @@ public class MainActivity extends BaseActivity {
149150 private @ StateInt int mState ;
150151 private TextView mTitle ;
151152 private TextView mSub ;
152- private ProgressBar mProgress ;
153+ private LinearProgressIndicator mProgress ;
153154 private Button mCheckBtn ;
154155 private Button mFlashBtn ;
155156 private TextView mUpdateVersion ;
You can’t perform that action at this time.
0 commit comments