diff --git a/app/src/androidTest/java/org/fdroid/fdroid/CleanCacheServiceTest.java b/app/src/androidTest/java/org/fdroid/fdroid/CleanCacheServiceTest.java index be41db5a7..45ae00550 100644 --- a/app/src/androidTest/java/org/fdroid/fdroid/CleanCacheServiceTest.java +++ b/app/src/androidTest/java/org/fdroid/fdroid/CleanCacheServiceTest.java @@ -57,9 +57,9 @@ public class CleanCacheServiceTest { assertFalse(first.exists()); assertFalse(second.exists()); - // make sure it doesn't freak out on a non-existant file - File nonexistant = new File(tempDir, "nonexistant"); - CleanCacheService.clearOldFiles(nonexistant, 1); + // make sure it doesn't freak out on a non-existent file + File nonexistent = new File(tempDir, "nonexistent"); + CleanCacheService.clearOldFiles(nonexistent, 1); CleanCacheService.clearOldFiles(null, 1); } } diff --git a/app/src/androidTest/java/org/fdroid/fdroid/Netstat.java b/app/src/androidTest/java/org/fdroid/fdroid/Netstat.java index 7354e6843..d7836f50d 100644 --- a/app/src/androidTest/java/org/fdroid/fdroid/Netstat.java +++ b/app/src/androidTest/java/org/fdroid/fdroid/Netstat.java @@ -141,7 +141,7 @@ public class Netstat { try { c.setStatus(STATES[Integer.parseInt(statusHexa, 16) - 1]); } catch (Exception ex) { - c.setStatus(STATES[11]); // unknwon + c.setStatus(STATES[11]); // unknown } c.setPID(-1); // unknown c.setPName("UNKNOWN"); @@ -174,7 +174,7 @@ public class Netstat { try { c.setStatus(STATES[Integer.parseInt(statusHexa, 16) - 1]); } catch (Exception ex) { - c.setStatus(STATES[11]); // unknwon + c.setStatus(STATES[11]); // unknown } c.setPID(-1); // unknown c.setPName("UNKNOWN"); @@ -208,7 +208,7 @@ public class Netstat { try { c.setStatus(STATES[Integer.parseInt(statusHexa, 16) - 1]); } catch (Exception ex) { - c.setStatus(STATES[11]); // unknwon + c.setStatus(STATES[11]); // unknown } c.setPID(-1); // unknown c.setPName("UNKNOWN"); diff --git a/app/src/androidTest/java/org/fdroid/fdroid/UiWatchers.java b/app/src/androidTest/java/org/fdroid/fdroid/UiWatchers.java index 1458653e8..46d933b3c 100644 --- a/app/src/androidTest/java/org/fdroid/fdroid/UiWatchers.java +++ b/app/src/androidTest/java/org/fdroid/fdroid/UiWatchers.java @@ -117,7 +117,7 @@ public class UiWatchers { return false; // no trigger } }); - Log.i(LOG_TAG, "Registed GUI Exception watchers"); + Log.i(LOG_TAG, "Registered GUI Exception watchers"); } public void onAnrDetected(String errorText) { diff --git a/app/src/full/java/kellinwood/security/zipsigner/optional/KeyStoreFileManager.java b/app/src/full/java/kellinwood/security/zipsigner/optional/KeyStoreFileManager.java index 10e67f64c..aaca405fc 100644 --- a/app/src/full/java/kellinwood/security/zipsigner/optional/KeyStoreFileManager.java +++ b/app/src/full/java/kellinwood/security/zipsigner/optional/KeyStoreFileManager.java @@ -113,7 +113,7 @@ public class KeyStoreFileManager { File keystoreFile = new File(keystorePath); try { if (keystoreFile.exists()) { - // I've had some trouble saving new verisons of the keystore file in which the file becomes empty/corrupt. + // I've had some trouble saving new versions of the keystore file in which the file becomes empty/corrupt. // Saving the new version to a new file and creating a backup of the old version. File tmpFile = File.createTempFile(keystoreFile.getName(), null, keystoreFile.getParentFile()); FileOutputStream fos = new FileOutputStream(tmpFile); diff --git a/app/src/full/java/org/fdroid/fdroid/localrepo/SDCardScannerService.java b/app/src/full/java/org/fdroid/fdroid/localrepo/SDCardScannerService.java index 6a021cbb0..8d92f0bae 100644 --- a/app/src/full/java/org/fdroid/fdroid/localrepo/SDCardScannerService.java +++ b/app/src/full/java/org/fdroid/fdroid/localrepo/SDCardScannerService.java @@ -47,7 +47,7 @@ import java.util.List; /** * An {@link IntentService} subclass for scanning removable "external storage" - * for F-Droid package repos, e.g. SD Cards. This is intented to support + * for F-Droid package repos, e.g. SD Cards. This is intended to support * sharable package repos, so it ignores non-removable storage, like the fake * emulated sdcard from devices with only built-in storage. This method will * only ever allow for reading repos, never writing. It also will not work diff --git a/app/src/main/java/org/fdroid/fdroid/data/RepoPersister.java b/app/src/main/java/org/fdroid/fdroid/data/RepoPersister.java index ad949565f..0554f9ae9 100644 --- a/app/src/main/java/org/fdroid/fdroid/data/RepoPersister.java +++ b/app/src/main/java/org/fdroid/fdroid/data/RepoPersister.java @@ -72,7 +72,7 @@ public class RepoPersister { private void flushBufferToDb() throws IndexUpdater.UpdateException { if (!hasBeenInitialized) { - // This is where we will store all of the metadata before commiting at the + // This is where we will store all of the metadata before committing at the // end of the process. This is due to the fact that we can't verify the cert // the index was signed with until we've finished reading it - and we don't // want to put stuff in the real database until we are sure it is from a diff --git a/app/src/main/java/org/fdroid/fdroid/net/Downloader.java b/app/src/main/java/org/fdroid/fdroid/net/Downloader.java index ee806b4fe..b7661fe9f 100644 --- a/app/src/main/java/org/fdroid/fdroid/net/Downloader.java +++ b/app/src/main/java/org/fdroid/fdroid/net/Downloader.java @@ -140,7 +140,7 @@ public abstract class Downloader { /** * After every network operation that could take a while, we will check if an - * interrupt occured during that blocking operation. The goal is to ensure we + * interrupt occurred during that blocking operation. The goal is to ensure we * don't move onto another slow, network operation if we have cancelled the * download. * diff --git a/app/src/main/java/org/fdroid/fdroid/views/AppDetailsActivity.java b/app/src/main/java/org/fdroid/fdroid/views/AppDetailsActivity.java index abd432b97..8f2b95bd2 100644 --- a/app/src/main/java/org/fdroid/fdroid/views/AppDetailsActivity.java +++ b/app/src/main/java/org/fdroid/fdroid/views/AppDetailsActivity.java @@ -517,7 +517,7 @@ public class AppDetailsActivity extends AppCompatActivity // wait for that service to notify us, and then we will respond in appObserver. // Having said that, there are some cases where the PackageManager doesn't - // return control back to us until after it has already braodcast to the + // return control back to us until after it has already broadcast to the // InstalledAppProviderService. This means that we are not listening for any // feedback from InstalledAppProviderService (we intentionally stop listening in // onPause). Empirically, this happens when upgrading an app rather than a clean diff --git a/app/src/main/java/org/fdroid/fdroid/views/OverscrollLinearLayoutManager.java b/app/src/main/java/org/fdroid/fdroid/views/OverscrollLinearLayoutManager.java index 2af5ac1e6..29c94dfdf 100644 --- a/app/src/main/java/org/fdroid/fdroid/views/OverscrollLinearLayoutManager.java +++ b/app/src/main/java/org/fdroid/fdroid/views/OverscrollLinearLayoutManager.java @@ -13,7 +13,7 @@ import android.util.AttributeSet; public class OverscrollLinearLayoutManager extends LinearLayoutManager { /** - * A listener interface to get overscroll infromation. + * A listener interface to get overscroll information. */ public interface OnOverscrollListener { /** diff --git a/app/src/main/java/org/fdroid/fdroid/views/PreferencesFragment.java b/app/src/main/java/org/fdroid/fdroid/views/PreferencesFragment.java index 062bb99f1..c8879f625 100644 --- a/app/src/main/java/org/fdroid/fdroid/views/PreferencesFragment.java +++ b/app/src/main/java/org/fdroid/fdroid/views/PreferencesFragment.java @@ -421,7 +421,7 @@ public class PreferencesFragment extends PreferenceFragment /** * If a user specifies they want to fetch updates automatically, then start the download of relevant * updates as soon as they enable the feature. - * Also, if the user has the priv extention installed then change the label to indicate that it + * Also, if the user has the priv extension installed then change the label to indicate that it * will actually _install_ apps, not just fetch their .apk file automatically. */ private void initAutoFetchUpdatesPreference() { diff --git a/app/src/main/java/org/fdroid/fdroid/views/apps/AppListItemController.java b/app/src/main/java/org/fdroid/fdroid/views/apps/AppListItemController.java index 67be68ead..ad434b619 100644 --- a/app/src/main/java/org/fdroid/fdroid/views/apps/AppListItemController.java +++ b/app/src/main/java/org/fdroid/fdroid/views/apps/AppListItemController.java @@ -223,7 +223,7 @@ public abstract class AppListItemController extends RecyclerView.ViewHolder { * @param app The app that was swiped away * @param updatesAdapter The adapter. Can be used for refreshing the adapter with adapter.refreshStatuses(). * - * @see #canDismiss() This must also be overriden and should return true. + * @see #canDismiss() This must also be overridden and should return true. */ protected void onDismissApp(@NonNull App app, UpdatesAdapter updatesAdapter) { } diff --git a/app/src/main/java/org/fdroid/fdroid/views/apps/CategoryTextWatcher.java b/app/src/main/java/org/fdroid/fdroid/views/apps/CategoryTextWatcher.java index eb7cd5e78..d924f8ce2 100644 --- a/app/src/main/java/org/fdroid/fdroid/views/apps/CategoryTextWatcher.java +++ b/app/src/main/java/org/fdroid/fdroid/views/apps/CategoryTextWatcher.java @@ -55,7 +55,7 @@ public class CategoryTextWatcher implements TextWatcher { // right to the start. This could be if we are removing everything (in which case // there is no text to span), or we are removing somewhere from after the category // back to the start (in which case we've removed the category anyway and don't need - // to explicilty request it to be removed. + // to explicitly request it to be removed. if (start == 0 && removingOrReplacing) { return; } @@ -119,7 +119,7 @@ public class CategoryTextWatcher implements TextWatcher { /** * Ensures that a {@link CategorySpan} is in {@param textToSpannify} if required. - * Will firstly remove all existing category spans, and then add back one if neccesary. + * Will firstly remove all existing category spans, and then add back one if necessary. * In addition, also adds a {@link TtsSpan} to indicate to screen readers that the category * span has semantic meaning representing a category. */ diff --git a/app/src/main/java/org/fdroid/fdroid/views/updates/UpdatesAdapter.java b/app/src/main/java/org/fdroid/fdroid/views/updates/UpdatesAdapter.java index 15cf1b6d6..f53807077 100644 --- a/app/src/main/java/org/fdroid/fdroid/views/updates/UpdatesAdapter.java +++ b/app/src/main/java/org/fdroid/fdroid/views/updates/UpdatesAdapter.java @@ -95,7 +95,7 @@ public class UpdatesAdapter extends RecyclerView.Adapter - +