Release 2.29.0

This commit is contained in:
tom79 2020-01-19 18:27:02 +01:00
parent 648595da52
commit 155289c02c
8 changed files with 26 additions and 29 deletions

View File

@ -6,8 +6,8 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 29
versionCode 346
versionName "2.28.2"
versionCode 347
versionName "2.29.0"
multiDexEnabled true
renderscriptTargetApi 28 as int
renderscriptSupportModeEnabled true

View File

@ -1,6 +1,13 @@
Added
- Friendica: Authorize/Reject follow requests
- Pixelfed: post media to stories
- Long press bio to open the contextual menu
- Allow to invite with Pleroma
Changed
- Import theme always visible
- Improve login activity
Fixed
- Not cropped media
- Crash when starting the app
- Filter with regex
- Issues with talk back and magnifying glass
- Some crashes

View File

@ -16,8 +16,6 @@ package app.fedilab.android.activities;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.StrictMode;
import androidx.multidex.MultiDex;
@ -149,13 +147,8 @@ public class MainApplication extends MultiDexApplication {
if (send_crash_reports) {
CoreConfigurationBuilder ACRABuilder = new CoreConfigurationBuilder(this);
ACRABuilder.setBuildConfigClass(BuildConfig.class).setReportFormat(StringFormat.KEY_VALUE_LIST);
String version = "";
try {
PackageInfo pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
version = pInfo.versionName;
} catch (PackageManager.NameNotFoundException ignored) {
}
ACRABuilder.getPluginConfigurationBuilder(MailSenderConfigurationBuilder.class).setReportAsFile(false).setMailTo("hello@fedilab.app").setSubject("[Fedilab] - Crash Report " + version).setEnabled(true);
int versionCode = BuildConfig.VERSION_CODE;
ACRABuilder.getPluginConfigurationBuilder(MailSenderConfigurationBuilder.class).setReportAsFile(false).setMailTo("hello@fedilab.app").setSubject("[Fedilab] - Crash Report " + versionCode).setEnabled(true);
ACRABuilder.getPluginConfigurationBuilder(LimiterConfigurationBuilder.class).setEnabled(true);
ACRA.init(this, ACRABuilder);
}

View File

@ -60,6 +60,7 @@ import app.fedilab.android.sqlite.TimelinesDAO;
import es.dmoral.toasty.Toasty;
import static app.fedilab.android.activities.BaseMainActivity.mPageReferenceMap;
import static app.fedilab.android.activities.BaseMainActivity.regex_home;
import static app.fedilab.android.sqlite.Sqlite.DB_NAME;
@ -596,11 +597,11 @@ public class ManageTimelines {
final boolean[] show_replies = {sharedpreferences.getBoolean(Helper.SET_SHOW_REPLIES, true)};
String show_filtered = null;
if (displayStatusFragment != null && displayStatusFragment.getUserVisibleHint() && tl.getType() == Type.HOME)
if (tl.getType() == Type.HOME)
show_filtered = sharedpreferences.getString(Helper.SET_FILTER_REGEX_HOME, null);
if (displayStatusFragment != null && displayStatusFragment.getUserVisibleHint() && tl.getType() == Type.LOCAL)
if (tl.getType() == Type.LOCAL)
show_filtered = sharedpreferences.getString(Helper.SET_FILTER_REGEX_LOCAL, null);
if (displayStatusFragment != null && displayStatusFragment.getUserVisibleHint() && tl.getType() == Type.PUBLIC)
if (tl.getType() == Type.PUBLIC)
show_filtered = sharedpreferences.getString(Helper.SET_FILTER_REGEX_PUBLIC, null);
itemShowBoosts.setChecked(show_boosts[0]);
@ -693,15 +694,15 @@ public class ManageTimelines {
@Override
public void onClick(DialogInterface dialog, int id) {
itemFilter.setTitle(editText.getText().toString().trim());
if (displayStatusFragment != null && displayStatusFragment.getUserVisibleHint() && tl.getType() == Type.HOME) {
if (tl.getType() == Type.HOME) {
editor.putString(Helper.SET_FILTER_REGEX_HOME, editText.getText().toString().trim());
MainActivity.regex_home = editText.getText().toString().trim();
}
if (displayStatusFragment != null && displayStatusFragment.getUserVisibleHint() && tl.getType() == Type.LOCAL) {
if (tl.getType() == Type.LOCAL) {
editor.putString(Helper.SET_FILTER_REGEX_LOCAL, editText.getText().toString().trim());
MainActivity.regex_local = editText.getText().toString().trim();
}
if (displayStatusFragment != null && displayStatusFragment.getUserVisibleHint() && tl.getType() == Type.PUBLIC) {
if (tl.getType() == Type.PUBLIC) {
editor.putString(Helper.SET_FILTER_REGEX_PUBLIC, editText.getText().toString().trim());
MainActivity.regex_public = editText.getText().toString().trim();
}

View File

@ -21,6 +21,7 @@ import android.os.Build;
import android.text.Html;
import android.text.SpannableString;
import com.google.gson.JsonObject;
import net.gotev.uploadservice.MultipartUploadRequest;
@ -214,7 +215,7 @@ public class HttpsConnection {
if (!cache.isClosed()) {
try {
cache.close();
} catch (IOException e) {
} catch (Exception e) {
e.printStackTrace();
}
}
@ -228,7 +229,7 @@ public class HttpsConnection {
if (!cache.isClosed()) {
try {
cache.close();
} catch (IOException e) {
} catch (Exception e) {
e.printStackTrace();
}
}

View File

@ -115,8 +115,6 @@ public class ColorSettingsFragment extends PreferenceFragmentCompat implements S
dialogBuilder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int id) {
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putBoolean("use_custom_theme", true);
dialog.dismiss();
}
});
@ -287,8 +285,6 @@ public class ColorSettingsFragment extends PreferenceFragmentCompat implements S
preferenceScreen.removePreference(reset_pref);
preferenceScreen.removePreference(pref_export);
} else {
preferenceScreen.removePreference(pref_import);
}
List<String> array = Arrays.asList(getResources().getStringArray(R.array.settings_theme));
CharSequence[] entries = array.toArray(new CharSequence[array.size()]);

View File

@ -4692,7 +4692,7 @@ public class Helper {
if (streamingIntent != null) {
try {
if (Build.VERSION.SDK_INT >= 26) {
context.startForegroundService(streamingIntent);
context.startService(streamingIntent);
} else {
context.startService(streamingIntent);
}

View File

@ -167,7 +167,6 @@
android:id="@+id/login_uid"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints="username"
android:hint="@string/username"
android:inputType="textEmailAddress"
android:maxLines="1" />
@ -181,13 +180,13 @@
android:layout_marginTop="10dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:passwordToggleEnabled="true"
app:layout_constraintTop_toBottomOf="@id/login_uid_container">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/login_passwd"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints="password"
android:hint="@string/password"
android:inputType="textPassword"
android:maxLines="1" />