Loading app/src/main/java/net/fabiszewski/ulogger/LocationHelper.java +1 −0 Original line number Diff line number Diff line Loading @@ -111,6 +111,7 @@ class LocationHelper { * * @return True if permission granted, false otherwise */ @SuppressWarnings("BooleanMethodIsAlwaysInverted") boolean canAccessBackgroundLocation() { boolean ret = true; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { Loading app/src/main/java/net/fabiszewski/ulogger/MainFragment.java +1 −2 Original line number Diff line number Diff line Loading @@ -134,8 +134,7 @@ public class MainFragment extends Fragment { if (context instanceof OnFragmentInteractionListener) { mListener = (OnFragmentInteractionListener) context; } else { throw new RuntimeException(context.toString() + " must implement OnFragmentInteractionListener"); throw new RuntimeException(context + " must implement OnFragmentInteractionListener"); } } Loading app/src/main/java/net/fabiszewski/ulogger/ProviderPreferenceDialogFragment.java +2 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ package net.fabiszewski.ulogger; import android.annotation.SuppressLint; import android.content.Context; import android.content.SharedPreferences; import android.content.res.TypedArray; Loading Loading @@ -122,6 +123,7 @@ public class ProviderPreferenceDialogFragment extends ListPreferenceDialogWithMe * Get default layout for single choice dialog * @return Layout resource id */ @SuppressLint("PrivateResource") private int getSingleChoiceLayoutResource() { int resId = android.R.layout.select_dialog_singlechoice; final Context context = getContext(); Loading app/src/main/java/net/fabiszewski/ulogger/SettingsFragment.java +2 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import static net.fabiszewski.ulogger.SettingsActivity.KEY_PROVIDER; import static net.fabiszewski.ulogger.SettingsActivity.KEY_USERNAME; import android.Manifest; import android.annotation.SuppressLint; import android.content.Context; import android.content.SharedPreferences; import android.content.res.Configuration; Loading Loading @@ -277,6 +278,7 @@ public class SettingsFragment extends PreferenceFragmentCompat { * @param context Context * @return Localized label */ @SuppressLint("AppBundleLocaleChanges") @RequiresApi(api = Build.VERSION_CODES.R) private CharSequence getBackgroundPermissionOptionLabel(Context context) { CharSequence label = context.getPackageManager().getBackgroundPermissionOptionLabel(); Loading app/src/main/java/net/fabiszewski/ulogger/WebHelper.java +0 −1 Original line number Diff line number Diff line Loading @@ -347,7 +347,6 @@ class WebHelper { /** * Get text/plain parameters as part of multipart form * @param out Output stream * @param params Parameters * @return Multipart body for text parameters * @throws IOException Exception on failure Loading Loading
app/src/main/java/net/fabiszewski/ulogger/LocationHelper.java +1 −0 Original line number Diff line number Diff line Loading @@ -111,6 +111,7 @@ class LocationHelper { * * @return True if permission granted, false otherwise */ @SuppressWarnings("BooleanMethodIsAlwaysInverted") boolean canAccessBackgroundLocation() { boolean ret = true; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { Loading
app/src/main/java/net/fabiszewski/ulogger/MainFragment.java +1 −2 Original line number Diff line number Diff line Loading @@ -134,8 +134,7 @@ public class MainFragment extends Fragment { if (context instanceof OnFragmentInteractionListener) { mListener = (OnFragmentInteractionListener) context; } else { throw new RuntimeException(context.toString() + " must implement OnFragmentInteractionListener"); throw new RuntimeException(context + " must implement OnFragmentInteractionListener"); } } Loading
app/src/main/java/net/fabiszewski/ulogger/ProviderPreferenceDialogFragment.java +2 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ package net.fabiszewski.ulogger; import android.annotation.SuppressLint; import android.content.Context; import android.content.SharedPreferences; import android.content.res.TypedArray; Loading Loading @@ -122,6 +123,7 @@ public class ProviderPreferenceDialogFragment extends ListPreferenceDialogWithMe * Get default layout for single choice dialog * @return Layout resource id */ @SuppressLint("PrivateResource") private int getSingleChoiceLayoutResource() { int resId = android.R.layout.select_dialog_singlechoice; final Context context = getContext(); Loading
app/src/main/java/net/fabiszewski/ulogger/SettingsFragment.java +2 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import static net.fabiszewski.ulogger.SettingsActivity.KEY_PROVIDER; import static net.fabiszewski.ulogger.SettingsActivity.KEY_USERNAME; import android.Manifest; import android.annotation.SuppressLint; import android.content.Context; import android.content.SharedPreferences; import android.content.res.Configuration; Loading Loading @@ -277,6 +278,7 @@ public class SettingsFragment extends PreferenceFragmentCompat { * @param context Context * @return Localized label */ @SuppressLint("AppBundleLocaleChanges") @RequiresApi(api = Build.VERSION_CODES.R) private CharSequence getBackgroundPermissionOptionLabel(Context context) { CharSequence label = context.getPackageManager().getBackgroundPermissionOptionLabel(); Loading
app/src/main/java/net/fabiszewski/ulogger/WebHelper.java +0 −1 Original line number Diff line number Diff line Loading @@ -347,7 +347,6 @@ class WebHelper { /** * Get text/plain parameters as part of multipart form * @param out Output stream * @param params Parameters * @return Multipart body for text parameters * @throws IOException Exception on failure Loading