Skip to content

Commit

Permalink
New version, fix deal one modes and show timer again
Browse files Browse the repository at this point in the history
  • Loading branch information
GitGitro committed Oct 8, 2024
1 parent e00888b commit e4810fe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ android {
applicationId "net.sourceforge.solitaire_cg_re"
minSdkVersion 23
targetSdkVersion 35
versionCode 5000
versionName "5.0.0"
versionCode 5100
versionName "5.1.0"
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1117,9 +1117,9 @@ public void DrawTime(Canvas canvas, int millis) {
}
}
mTimePaint.setARGB(255, 20, 20, 20);
canvas.drawText(mTimeString, mScreenWidth-9, mScreenHeight-9, mTimePaint);
canvas.drawText(mTimeString, mScreenWidth-9, mScreenHeight-200, mTimePaint);
mTimePaint.setARGB(255, 0, 0, 0);
canvas.drawText(mTimeString, mScreenWidth-10, mScreenHeight-10, mTimePaint);
canvas.drawText(mTimeString, mScreenWidth-10, mScreenHeight-200, mTimePaint);
}

public void DrawAltMenuString(Canvas canvas, int gameType, String text) {
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/java/net/sourceforge/solitaire_cg_re/Modes.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.View;
import android.widget.Button;

Expand Down Expand Up @@ -38,8 +39,8 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
Button buttonGolfWrapcards = modesView.findViewById(R.id.button_golf_wrapcards);


final SharedPreferences settings = getSharedPreferences("YourPreferences", MODE_PRIVATE);
final SharedPreferences.Editor editor = settings.edit();
final SharedPreferences mSettings = PreferenceManager.getDefaultSharedPreferences(this);
final SharedPreferences.Editor editor = mSettings.edit();


buttonBlackWidow.setOnClickListener(v -> {
Expand Down

0 comments on commit e4810fe

Please sign in to comment.