Skip to content

Commit b94d4fa

Browse files
committed
Fix: added GPL header and resolved duplicate cancel string
1 parent 2d9b2dd commit b94d4fa

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

AnkiDroid/src/main/java/com/ichi2/anki/account/AccountRemovalExplanationDialog.kt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2025 Abhinav Varma <vabhinav12112003@gmail.com>
3+
*
4+
* This program is free software; you can redistribute it and/or modify it under
5+
* the terms of the GNU General Public License as published by the Free Software
6+
* Foundation; either version 3 of the License, or (at your option) any later
7+
* version.
8+
*
9+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
10+
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11+
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12+
* details.
13+
*
14+
* You should have received a copy of the GNU General Public License along with
15+
* this program. If not, see <http://www.gnu.org/licenses/>.
16+
*/
117
package com.ichi2.anki.account
218
import android.annotation.SuppressLint
319
import android.app.Dialog
@@ -47,7 +63,7 @@ class AccountRemovalExplanationDialog : DialogFragment() {
4763
.setView(view)
4864
.setPositiveButton(R.string.proceed) { _, _ ->
4965
setFragmentResult(REQUEST_KEY, bundleOf(RESULT_PROCEED to true))
50-
}.setNegativeButton(R.string.cancel, null)
66+
}.setNegativeButton(R.string.cancel_btn, null)
5167
.create()
5268
}
5369

AnkiDroid/src/main/res/values/02-strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,6 @@ opening the system text to speech settings fails">Failed to open text to speech
443443
<string name="copy">Copy</string>
444444
<string name="email_copied">Email copied to clipboard</string>
445445
<string name="proceed">Proceed</string>
446-
<string name="cancel">Cancel</string>
446+
<string name="cancel_btn">Cancel</string>
447447
</resources>
448448

0 commit comments

Comments
 (0)