Skip to content

Commit

Permalink
Remove unused field and supresslint
Browse files Browse the repository at this point in the history
  • Loading branch information
samfundev committed Jul 13, 2023
1 parent cf1df62 commit b24a270
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
4 changes: 0 additions & 4 deletions app/src/main/java/com/perflyst/twire/TwireApplication.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.perflyst.twire;

import android.annotation.SuppressLint;
import android.app.Application;

import com.techyourchance.threadposter.BackgroundThreadPoster;
Expand All @@ -9,10 +8,7 @@
/**
* Created by SebastianRask on 20-02-2016.
*/
@SuppressLint("StaticFieldLeak") // It is alright to store application context statically
public class TwireApplication extends Application {
public static final boolean isCrawlerUpdate = false; //ToDo remember to disable for crawler updates

public static final UiThreadPoster uiThreadPoster = new UiThreadPoster();
public static final BackgroundThreadPoster backgroundPoster = new BackgroundThreadPoster();
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import android.widget.TextView;

import com.perflyst.twire.R;
import com.perflyst.twire.TwireApplication;
import com.perflyst.twire.service.Service;
import com.perflyst.twire.service.Settings;
import com.perflyst.twire.tasks.GetFollowsFromDB;
Expand Down Expand Up @@ -124,12 +123,7 @@ protected void onCreate(Bundle savedInstanceState) {
float textPosition = (int) (2.5 * (Service.getScreenHeight(this) / 5));
mLoginTextContainer.setY(textPosition);
mSuccessMessage.setY(textPosition);
mContinueFABContainer.setOnClickListener(v -> {
showLoginView();

if (TwireApplication.isCrawlerUpdate)
showSkippingAnimation();
});
mContinueFABContainer.setOnClickListener(v -> showLoginView());

Service.bringToBack(mTransitionViewWhite);
Service.bringToBack(mTransitionViewBlue);
Expand Down

0 comments on commit b24a270

Please sign in to comment.