Skip to content

Commit

Permalink
Remove flashbang from Details, prepare release 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
astarivi committed Jun 8, 2023
1 parent 888a64c commit 356a3c1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 28 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ android {
applicationId "com.astarivi.kaizoyu"
minSdkVersion 23
targetSdkVersion 33
versionCode 2
versionName "0.1"
versionCode 3
versionName "0.2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

public class UpdateManager {
// TODO Change this for every release, doh.
public static String VERSION = "0.1";
public static String VERSION_NAME = "copilot";
public static String VERSION = "0.2";
public static String VERSION_NAME = "engineer";

@ThreadedOnly
public @Nullable LatestUpdate getLatestUpdate() throws ParseException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,9 @@

import org.jetbrains.annotations.NotNull;

import io.github.tonnyl.spark.Spark;


public class AnimeDetailsActivity extends AppCompatActivityTheme {
private ActivityAnimeDetailsBinding binding;
private Spark spark;
private AnimeBase anime;
private ModelType.Anime animeType;
private SeenAnime seenAnime;
Expand Down Expand Up @@ -189,11 +186,8 @@ private void initializeFavorite() {
}

private void continueInitialization() {
if (spark != null) {
spark.stopAnimation();
binding.loadingScreen.setVisibility(View.GONE);
binding.posterImage.setVisibility(View.VISIBLE);
}
binding.loadingScreen.setVisibility(View.GONE);
binding.posterImage.setVisibility(View.VISIBLE);

TabLayout tabLayout = binding.informationTabLayout;

Expand Down Expand Up @@ -262,12 +256,6 @@ private void continueInitialization() {
private void setLoadingScreen() {
binding.posterImage.setVisibility(View.INVISIBLE);
binding.loadingScreen.setVisibility(View.VISIBLE);
spark = new Spark.Builder()
.setView(binding.loadingScreenOverlay)
.setDuration(3000)
.setAnimList(Spark.ANIM_BLUE_PURPLE)
.build();
spark.startAnimation();
}

private void configureTabAdapter(TabLayout tabLayout){
Expand Down
12 changes: 2 additions & 10 deletions app/src/main/res/layout/activity_anime_details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,8 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">

<View
android:id="@+id/loading_screen_overlay"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintTop_toTopOf="parent"
>

<ImageView
android:id="@+id/cancel_button"
Expand Down

0 comments on commit 356a3c1

Please sign in to comment.