Skip to content

Commit

Permalink
MainService: use Defaults.getPort(), not hardcoded value
Browse files Browse the repository at this point in the history
  • Loading branch information
bk138 committed Jun 8, 2023
1 parent 1e37abe commit ab8e149
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public void onCreate() {

if (!vncStartServer(displayMetrics.widthPixels,
displayMetrics.heightPixels,
prefs.getInt(Constants.PREFS_KEY_SETTINGS_PORT, 5900),
prefs.getInt(Constants.PREFS_KEY_SETTINGS_PORT, mDefaults.getPort()),
Settings.Secure.getString(getContentResolver(), "bluetooth_name"),
prefs.getString(Constants.PREFS_KEY_SETTINGS_PASSWORD, mDefaults.getPassword())))
stopSelf();
Expand Down

0 comments on commit ab8e149

Please sign in to comment.