Skip to content

Commit

Permalink
version 0.84.2
Browse files Browse the repository at this point in the history
  • Loading branch information
woesss committed Sep 10, 2023
1 parent fb1dab2 commit 87f76b0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: ["https://www.paypal.me/j2meforever", "https://my.qiwi.com/Yuryi-Khk_7vnCWvd"]
custom: ["https://yoomoney.ru/to/4100118352955609"]
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId "ru.woesss.j2meloader"
minSdk MIN_SDK
targetSdk TARGET_SDK
versionCode 38
versionName "0.84.1"
versionCode 39
versionName "0.84.2"
resValue 'string', 'app_name', rootProject.name
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,34 +47,20 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c

@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
// PayPal
// JL-Mod

view.<ViewStub>findViewById(R.id.donations_paypal_stub_me)
.inflate()
.<Button>findViewById(org.sufficientlysecure.donations.R.id.donations__paypal_donate_button)
.setOnClickListener(v -> donateOnClick("https://www.paypal.me/j2meforever"));
View ym = view.<ViewStub>findViewById(R.id.donations_yoomoney_stub_me).inflate();
ym.<Button>findViewById(org.sufficientlysecure.donations.R.id.donations__paypal_donate_button)
.setOnClickListener(v -> donateOnClick("https://yoomoney.ru/to/4100118352955609"));

// Qiwi
View qiwiView = view.<ViewStub>findViewById(R.id.donations_qiwi_stub_me).inflate();

qiwiView.<Button>findViewById(org.sufficientlysecure.donations.R.id.donations__paypal_donate_button)
.setOnClickListener(v -> donateOnClick("https://my.qiwi.com/Yuryi-Khk_7vnCWvd"));

qiwiView.<TextView>findViewById(org.sufficientlysecure.donations.R.id.donations__paypal_title)
.setText("Qiwi");


// PayPal

view.<ViewStub>findViewById(R.id.donations_paypal_stub_jl).inflate()
.<Button>findViewById(org.sufficientlysecure.donations.R.id.donations__paypal_donate_button)
.setOnClickListener(v -> donateOnClick("https://www.paypal.me/nikita36078"));
ym.<TextView>findViewById(org.sufficientlysecure.donations.R.id.donations__paypal_title)
.setText("ЮMoney");

// Yandex
// J2ME Loader
View ymView = view.<ViewStub>findViewById(R.id.donations_ym_stub_jl).inflate();

ymView.<Button>findViewById(org.sufficientlysecure.donations.R.id.donations__paypal_donate_button)
.setOnClickListener(v -> donateOnClick("https://money.yandex.ru/to/41001670387745"));
.setOnClickListener(v -> donateOnClick("https://yoomoney.ru/to/41001670387745"));

ymView.<TextView>findViewById(org.sufficientlysecure.donations.R.id.donations__paypal_title)
.setText("ЮMoney");
Expand Down
20 changes: 3 additions & 17 deletions app/src/main/res/layout/fragment_donations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,40 +20,26 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="JL-Mod:"
android:text="@string/app_name"
android:textAppearance="?android:textAppearanceLarge"
tools:ignore="HardcodedText" />

<ViewStub
android:id="@+id/donations_paypal_stub_me"
android:id="@+id/donations_yoomoney_stub_me"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inflatedId="@+id/donations_paypal_me"
android:layout="@layout/donations__fragment_paypal" />

<ViewStub
android:id="@+id/donations_qiwi_stub_me"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inflatedId="@+id/donations_qiwi_me"
android:layout="@layout/donations__fragment_paypal" />

<TextView
android:id="@+id/textView3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="J2ME Loader:"
android:text="J2ME Loader"
android:textAppearance="?android:textAppearanceLarge"
tools:ignore="HardcodedText" />

<ViewStub
android:id="@+id/donations_paypal_stub_jl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inflatedId="@+id/donations_paypal_jl"
android:layout="@layout/donations__fragment_paypal" />

<ViewStub
android:id="@+id/donations_ym_stub_jl"
android:layout_width="match_parent"
Expand Down

0 comments on commit 87f76b0

Please sign in to comment.