Compare commits

...

10 Commits

Author SHA1 Message Date
LucasGGamerM
c22374b712 96 changelog 2023-02-20 17:18:21 -03:00
LucasGGamerM
7820926e1a Bump version nummber 2023-02-20 17:15:33 -03:00
LucasGGamerM
fcf5887359 Changing the icon of the add timelines button 2023-02-20 17:01:01 -03:00
LucasGGamerM
aade898681 Merge pull request #95 from FineFindus/fix/typos
Fix/typos
2023-02-20 16:42:58 -03:00
FineFindus
d6653b5f78 style(readme): hability -> ability 2023-02-20 20:37:28 +01:00
FineFindus
89514dbf14 style(basestatuslist): THRESHHOLD -> THRESHOLD 2023-02-20 20:36:18 +01:00
LucasGGamerM
456fbb6fc9 Maybe fixing the broken custom timelines when there is a poll 2023-02-20 16:32:01 -03:00
LucasGGamerM
f2d29366bd Merge pull request #94 from FineFindus/fix/timeline-hint
fix(custom-timelines): remove default text
2023-02-20 14:46:46 -03:00
FineFindus
ea7c366981 fix(custom-timelines): remove default text 2023-02-20 18:30:31 +01:00
LucasGGamerM
fe7362bb28 Update README.md 2023-02-20 14:25:39 -03:00
6 changed files with 13 additions and 12 deletions

View File

@@ -15,6 +15,8 @@
## Key features ## Key features
### **The ability to add new custom local timelines!**
### **Material you theme support on Android 12+ devices!** ### **Material you theme support on Android 12+ devices!**
### **Show posts filtered with a warning!** ### **Show posts filtered with a warning!**
@@ -94,7 +96,7 @@ Variant with an integrated updater. If you download Moshidon from here (and not
([Pull request](https://github.com/mastodon/mastodon-android/pull/103)) ([Pull request](https://github.com/mastodon/mastodon-android/pull/103))
* Adding a useful private profile note box!* * Adding a useful private profile note box!*
* Auto hiding the compose button on scroll!* * Auto hiding the compose button on scroll!*
* Adding the hability to remind yourself to add alt text to images!* * Adding the ability to remind yourself to add alt text to images!*
* An indicator for if an image has alt text or not* * An indicator for if an image has alt text or not*
* Adding the ability to have drafts!* * Adding the ability to have drafts!*
* Also adding the ability to view announcements from your instance!* * Also adding the ability to view announcements from your instance!*

View File

@@ -9,8 +9,8 @@ android {
applicationId "org.joinmastodon.android.moshinda" applicationId "org.joinmastodon.android.moshinda"
minSdk 23 minSdk 23
targetSdk 33 targetSdk 33
versionCode 95 versionCode 96
versionName "1.2.0+fork.95.moshinda" versionName "1.2.0+fork.96.moshinda"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
resConfigs "ar-rSA", "be-rBY", "bn-rBD", "bs-rBA", "ca-rES", "cs-rCZ", "de-rDE", "el-rGR", "es-rES", "eu-rES", "fi-rFI", "fil-rPH", "fr-rFR", "ga-rIE", "gd-rGB", "gl-rES", "hi-rIN", "hr-rHR", "hu-rHU", "hy-rAM", "in-rID", "is-rIS", "it-rIT", "iw-rIL", "ja-rJP", "kab", "ko-rKR", "nl-rNL", "oc-rFR", "pl-rPL", "pt-rBR", "pt-rPT", "ro-rRO", "ru-rRU", "si-rLK", "sl-rSI", "sv-rSE", "th-rTH", "tr-rTR", "uk-rUA", "vi-rVN", "zh-rCN", "zh-rTW" resConfigs "ar-rSA", "be-rBY", "bn-rBD", "bs-rBA", "ca-rES", "cs-rCZ", "de-rDE", "el-rGR", "es-rES", "eu-rES", "fi-rFI", "fil-rPH", "fr-rFR", "ga-rIE", "gd-rGB", "gl-rES", "hi-rIN", "hr-rHR", "hu-rHU", "hy-rAM", "in-rID", "is-rIS", "it-rIT", "iw-rIL", "ja-rJP", "kab", "ko-rKR", "nl-rNL", "oc-rFR", "pl-rPL", "pt-rBR", "pt-rPT", "ro-rRO", "ru-rRU", "si-rLK", "sl-rSI", "sv-rSE", "th-rTH", "tr-rTR", "uk-rUA", "vi-rVN", "zh-rCN", "zh-rTW"
} }

View File

@@ -13,13 +13,11 @@ import android.text.Layout;
import android.text.StaticLayout; import android.text.StaticLayout;
import android.text.TextPaint; import android.text.TextPaint;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.Log;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.view.WindowInsets; import android.view.WindowInsets;
import android.view.animation.TranslateAnimation; import android.view.animation.TranslateAnimation;
import android.widget.ImageButton; import android.widget.ImageButton;
import android.widget.ImageButton;
import android.widget.Toolbar; import android.widget.Toolbar;
import org.joinmastodon.android.E; import org.joinmastodon.android.E;
@@ -34,7 +32,6 @@ import org.joinmastodon.android.model.Poll;
import org.joinmastodon.android.model.Relationship; import org.joinmastodon.android.model.Relationship;
import org.joinmastodon.android.model.Status; import org.joinmastodon.android.model.Status;
import org.joinmastodon.android.ui.BetterItemAnimator; import org.joinmastodon.android.ui.BetterItemAnimator;
import org.joinmastodon.android.model.DisplayItemsParent;
import org.joinmastodon.android.ui.PhotoLayoutHelper; import org.joinmastodon.android.ui.PhotoLayoutHelper;
import org.joinmastodon.android.ui.TileGridLayoutManager; import org.joinmastodon.android.ui.TileGridLayoutManager;
import org.joinmastodon.android.ui.displayitems.ExtendedFooterStatusDisplayItem; import org.joinmastodon.android.ui.displayitems.ExtendedFooterStatusDisplayItem;
@@ -85,7 +82,7 @@ public abstract class BaseStatusListFragment<T extends DisplayItemsParent> exten
protected HashMap<String, Relationship> relationships=new HashMap<>(); protected HashMap<String, Relationship> relationships=new HashMap<>();
protected Rect tmpRect=new Rect(); protected Rect tmpRect=new Rect();
private final int THRESHHOLD = 800; private final int THRESHOLD = 800;
public BaseStatusListFragment(){ public BaseStatusListFragment(){
super(20); super(20);
@@ -303,7 +300,7 @@ public abstract class BaseStatusListFragment<T extends DisplayItemsParent> exten
if (fab!=null && GlobalUserPreferences.enableFabAutoHide) { if (fab!=null && GlobalUserPreferences.enableFabAutoHide) {
// This piece of code should make it so that the fab is always visible if the status list scroll view is at the item at the top // This piece of code should make it so that the fab is always visible if the status list scroll view is at the item at the top
if(list.getChildAt(0).getTop() == 0){ if(list.getChildAt(0).getTop() == 0){
scrollDiff=THRESHHOLD+1; scrollDiff= THRESHOLD +1;
}else{ }else{
if(dy > 0){ if(dy > 0){
scrollDiff=0; scrollDiff=0;
@@ -323,7 +320,7 @@ public abstract class BaseStatusListFragment<T extends DisplayItemsParent> exten
fab.setVisibility(View.INVISIBLE); fab.setVisibility(View.INVISIBLE);
scrollDiff = 0; scrollDiff = 0;
} else if (dy < 0 && fab.getVisibility() != View.VISIBLE) { } else if (dy < 0 && fab.getVisibility() != View.VISIBLE) {
if (scrollDiff > THRESHHOLD) { if (scrollDiff > THRESHOLD) {
TranslateAnimation animate = new TranslateAnimation( TranslateAnimation animate = new TranslateAnimation(
0, 0,
0, 0,

View File

@@ -150,7 +150,6 @@ public class EditTimelinesFragment extends BaseRecyclerFragment<TimelineDefiniti
FrameLayout inputWrap = new FrameLayout(getContext()); FrameLayout inputWrap = new FrameLayout(getContext());
EditText input = new EditText(getContext()); EditText input = new EditText(getContext());
input.setHint(R.string.sk_example_domain); input.setHint(R.string.sk_example_domain);
input.setText(GlobalUserPreferences.publishButtonText.trim());
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
params.setMargins(V.dp(16), V.dp(4), V.dp(16), V.dp(16)); params.setMargins(V.dp(16), V.dp(4), V.dp(16), V.dp(16));
input.setLayoutParams(params); input.setLayoutParams(params);
@@ -190,7 +189,7 @@ public class EditTimelinesFragment extends BaseRecyclerFragment<TimelineDefiniti
hashtagsMenu.getItem().setIcon(R.drawable.ic_fluent_number_symbol_24_regular); hashtagsMenu.getItem().setIcon(R.drawable.ic_fluent_number_symbol_24_regular);
MenuItem addLocalTimelines = menu.add(0, R.id.menu_add_local_timelines, NONE, R.string.local_timeline); MenuItem addLocalTimelines = menu.add(0, R.id.menu_add_local_timelines, NONE, R.string.local_timeline);
addLocalTimelines.setIcon(R.drawable.ic_fluent_people_community_24_regular); addLocalTimelines.setIcon(R.drawable.ic_fluent_add_24_regular);
makeBackItem(timelinesMenu); makeBackItem(timelinesMenu);
makeBackItem(listsMenu); makeBackItem(listsMenu);

View File

@@ -17,7 +17,7 @@ public class Poll extends BaseModel{
public boolean multiple; public boolean multiple;
public int votersCount; public int votersCount;
public boolean voted; public boolean voted;
@RequiredField // @RequiredField
public List<Integer> ownVotes; public List<Integer> ownVotes;
@RequiredField @RequiredField
public List<Option> options; public List<Option> options;

View File

@@ -0,0 +1,3 @@
New things for 95:
- Improving the ability to have other server's local timelines in the timelines
- Minor fixes and improvements