Skip to content

Commit 4e60d1e

Browse files
committed
Rename constant
1 parent c3db084 commit 4e60d1e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/src/main/java/tk/superl2/xwifi/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class MainActivity: AppCompatActivity() {
7474
.withPsk(wifiEntries[position].password)
7575
.withAuthentication(wifiEntries[position].type.asQRCodeAuth()))
7676
.withColor((if (AppCompatDelegate.getDefaultNightMode() != AppCompatDelegate.MODE_NIGHT_YES) 0xFF000000 else 0xFFE0E0E0).toInt(), 0x00000000) //TODO Better colour handling - atm, the colours may be wrong if the theme is set to system or auto.
77-
.withSize(prefs.getString("qr_code_resolution", DEFAULT_QR_GENERATION_RESOLUTION).toInt(), prefs.getString("qr_code_resolution", DEFAULT_QR_GENERATION_RESOLUTION).toInt())
77+
.withSize(prefs.getString("qr_code_resolution", DEFAULT_QR_CODE_RESOLUTION).toInt(), prefs.getString("qr_code_resolution", DEFAULT_QR_CODE_RESOLUTION).toInt())
7878
.bitmap())
7979
})
8080
builder.setPositiveButton("Done") { dialog, _ -> dialog.dismiss() }

app/src/main/java/tk/superl2/xwifi/SettingsActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import android.support.v7.app.AppCompatActivity
77
import android.support.v7.app.AppCompatDelegate
88
import android.widget.Toast
99

10-
internal const val DEFAULT_QR_GENERATION_RESOLUTION = "300"
10+
internal const val DEFAULT_QR_CODE_RESOLUTION = "300"
1111

1212
class SettingsActivity: AppCompatActivity() {
1313
override fun onCreate(savedInstanceState: Bundle?) {

app/src/main/java/tk/superl2/xwifi/xposed/XposedModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class XposedModule: IXposedHookLoadPackage {
140140
.withSsid(selectedAccessPoint.title)
141141
.withPsk(selectedAccessPoint.password)
142142
.withAuthentication(selectedAccessPoint.type.asQRCodeAuth()))
143-
.withSize(prefs.getString("qr_code_resolution", DEFAULT_QR_GENERATION_RESOLUTION).toInt(), prefs.getString("qr_code_resolution", DEFAULT_QR_GENERATION_RESOLUTION).toInt())
143+
.withSize(prefs.getString("qr_code_resolution", DEFAULT_QR_CODE_RESOLUTION).toInt(), prefs.getString("qr_code_resolution", DEFAULT_QR_CODE_RESOLUTION).toInt())
144144
.bitmap())
145145
})
146146
builder.setNeutralButton("Settings") { dialog, _ -> dialog.dismiss(); (param.thisObject as Fragment).startActivity(Intent().setComponent(ComponentName("tk.superl2.xwifi", "tk.superl2.xwifi.SettingsActivity")).putExtra("xposed", true)) }

0 commit comments

Comments
 (0)