add codespell, fix typos (#2490)

* add script to call codespell utility

* fix typos found by scripts/codespell.sh
This commit is contained in:
bjoern
2023-03-06 13:44:46 +01:00
committed by GitHub
parent 1eb04a8bcb
commit 08bb30eb3a
14 changed files with 34 additions and 30 deletions
@@ -612,7 +612,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
if (isSharing(this)) {
// we're allowing only 1 try to share, going back to the conversation list will
// close the conversation list in activtyForResult() as well, so that the user
// comes back to the extenal app's share menu
// comes back to the external app's share menu
setResult(RESULT_OK);
}
finish();
@@ -54,7 +54,7 @@ public class KeepAliveService extends Service {
// set self as foreground
try {
stopForeground(true);
startForeground(NotificationCenter.ID_PERMANTENT, createNotification());
startForeground(NotificationCenter.ID_PERMANENT, createNotification());
}
catch (Exception e) {
e.printStackTrace();
@@ -69,7 +69,7 @@ public class LocationBackgroundService extends Service {
try {
locationManager.removeUpdates(locationListener);
} catch (Exception ex) {
Log.i(TAG, "fail to remove location listners, ignore", ex);
Log.i(TAG, "fail to remove location listeners, ignore", ex);
}
}
@@ -23,7 +23,7 @@ import java.util.List;
import static java.util.Collections.emptyList;
/**
* Renders multiple lines of {@link #text} in ths specified {@link #color}.
* Renders multiple lines of {@link #text} in the specified {@link #color}.
* <p>
* Scales down the text size of long lines to fit inside the {@link Bounds} width.
*/
@@ -192,7 +192,7 @@ public class DCMapFragment extends Fragment implements OnMapReadyCallback {
}
/**
* Called when the fragment is view hiearchy is being destroyed.
* Called when the fragment is view hierarchy is being destroyed.
*/
@Override
public void onDestroyView() {
@@ -399,7 +399,7 @@ public class AttachmentManager {
return result;
}
// should be called when the attachement manager comes into view again.
// should be called when the attachment manager comes into view again.
// if the attachment manager contains a webxdc, its summary is updated.
public void onResume() {
if (slide.isPresent()) {
@@ -149,7 +149,7 @@ public class NotificationCenter {
// Notification IDs
// --------------------------------------------------------------------------------------------
public static final int ID_PERMANTENT = 1;
public static final int ID_PERMANENT = 1;
public static final int ID_MSG_SUMMARY = 2;
public static final int ID_GENERIC = 3;
public static final int ID_MSG_OFFSET = 0; // msgId is added - as msgId start at 10, there are no conflicts with lower numbers
@@ -112,7 +112,7 @@ public class NotificationsPreferenceFragment extends ListSummaryPreferenceFragme
super.onResume();
((ApplicationPreferencesActivity) getActivity()).getSupportActionBar().setTitle(R.string.pref_notifications);
// upate ignoreBattery in onResume() to reflects changes done in the system settings
// update ignoreBattery in onResume() to reflects changes done in the system settings
ignoreBattery.setChecked(isIgnoringBatteryOptimizations());
}
@@ -837,7 +837,7 @@ public class VideoRecoder {
vei.resultHeight *= scale;
}
// we know the most important things now, prepare the message to get a resposive ui
// we know the most important things now, prepare the message to get a responsive ui
if (vei.originalRotationValue == 90 || vei.originalRotationValue == 270) {
msg.setDimension(vei.resultHeight, vei.resultWidth);
} else {
@@ -846,7 +846,7 @@ public class VideoRecoder {
msg.setDuration((int) resultDurationMs);
DcHelper.getContext(context).prepareMsg(chatId, msg);
// calulate bytes
// calculate bytes
vei.estimatedBytes = VideoRecoder.calculateEstimatedSize((float) resultDurationMs / vei.originalDurationMs,
vei.resultVideoBitrate, vei.originalDurationMs, vei.originalAudioBytes);