File tree Expand file tree Collapse file tree
app/src/main/java/com/fox2code/mmm Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111
1212import com .fox2code .foxcompat .app .FoxActivity ;
1313import com .fox2code .mmm .utils .io .net .Http ;
14+ import com .google .android .material .bottomnavigation .BottomNavigationItemView ;
1415import com .google .android .material .button .MaterialButton ;
1516import com .google .android .material .progressindicator .LinearProgressIndicator ;
1617import com .google .android .material .textview .MaterialTextView ;
@@ -182,8 +183,9 @@ public void checkForUpdate() {
182183 // set status text to update available
183184 statusTextView .setText (R .string .update_available );
184185 // set button text to download
185- MaterialButton button = findViewById (R .id .update_button );
186- button .setText (R .string .download_update );
186+ BottomNavigationItemView button = findViewById (R .id .action_update );
187+ button .setTooltipText (R .string .download_update );
188+ button .setEnabled (true );
187189 });
188190 // return
189191 } else {
You can’t perform that action at this time.
0 commit comments