Skip to content

Commit

Permalink
Upgrade CommonUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Oct 18, 2023
1 parent 26501cc commit b95bb92
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/gianlu/timeless/LoadingActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void goodToGo() {

@Override
public void offline() {
view.endFakeAnimation(() -> OfflineActivity.startActivity(LoadingActivity.this, LoadingActivity.class), false);
view.endFakeAnimation(() -> OfflineActivity.startActivity(LoadingActivity.this, "Timeless", LoadingActivity.class), false);
}
});
}
Expand Down Expand Up @@ -92,7 +92,7 @@ public void onException(@NonNull Exception ex) {
view.endFakeAnimation(() -> {
Toaster.with(this).message(R.string.failedRefreshingToken).show();
if (ex instanceof IOException) {
OfflineActivity.startActivity(this, LoadingActivity.class);
OfflineActivity.startActivity(this, "Timeless", LoadingActivity.class);
} else if (ex instanceof WakaTime.MissingCredentialsException) {
start(GrantActivity.class, null);
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/gianlu/timeless/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public boolean onDrawerMenuItemSelected(@NonNull BaseDrawerItem<DrawerItem> item
startActivity(new Intent(this, PreferenceActivity.class));
return false;
case SUPPORT:
LogsHelper.sendEmail(this, null);
LogsHelper.openGithubIssue(this,"Timeless", null);
return true;
default:
return true;
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/java/com/gianlu/timeless/PreferenceActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ protected boolean hasTutorial() {
return false;
}

@Nullable
@Override
protected String getGithubProjectName() {
return "Timeless";
}

@Nullable
@Override
protected String getOpenSourceUrl() {
Expand Down
7 changes: 7 additions & 0 deletions app/src/main/java/com/gianlu/timeless/ThisApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.preference.PreferenceManager;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.gianlu.commonutils.analytics.AnalyticsApplication;
import com.gianlu.commonutils.network.ConnectivityChecker;
Expand Down Expand Up @@ -58,4 +59,10 @@ protected boolean uncaughtNotDebug(Thread thread, Throwable throwable) {
protected boolean isDebug() {
return BuildConfig.DEBUG;
}

@Nullable
@Override
protected String getGithubProjectName() {
return "Timeless";
}
}

0 comments on commit b95bb92

Please sign in to comment.