mirror of
https://github.com/nuclearfog/Shitter.git
synced 2025-02-09 00:28:56 +01:00
version upgrade, gradle update, screenshot update, app icon color fix, renamed tweet methods
This commit is contained in:
parent
2f0124fe1a
commit
23cf52d850
@ -12,8 +12,8 @@ android {
|
||||
applicationId 'org.nuclearfog.twidda'
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 31
|
||||
versionCode 57
|
||||
versionName '2.0.4'
|
||||
versionCode 58
|
||||
versionName '2.0.5'
|
||||
// limiting language support for smaller APK size
|
||||
resConfigs 'en', 'de-rDE', 'zh-rCN'
|
||||
vectorDrawables.useSupportLibrary true
|
||||
@ -59,7 +59,7 @@ dependencies {
|
||||
implementation 'androidx.appcompat:appcompat:1.4.1'
|
||||
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
||||
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
|
||||
implementation 'com.google.android.material:material:1.5.0'
|
||||
implementation 'com.google.android.material:material:1.6.0'
|
||||
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
|
||||
implementation 'androidx.cardview:cardview:1.0.0'
|
||||
|
@ -771,7 +771,7 @@ public class Twitter implements GlobalSettings.SettingsListener {
|
||||
List<Tweet> result = getTweets1(TWEET_SEARCH, params);
|
||||
List<Tweet> replies = new LinkedList<>();
|
||||
for (Tweet reply : result) {
|
||||
if (reply.getReplyId() == tweetId) {
|
||||
if (reply.getRepliedTweetId() == tweetId) {
|
||||
replies.add(reply);
|
||||
}
|
||||
}
|
||||
|
@ -144,12 +144,12 @@ public class TweetV1 implements Tweet {
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getReplyUserId() {
|
||||
public long getRepliedUserId() {
|
||||
return replyUserId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getReplyId() {
|
||||
public long getRepliedTweetId() {
|
||||
return replyId;
|
||||
}
|
||||
|
||||
|
@ -781,13 +781,13 @@ public class AppDatabase {
|
||||
status.put(TweetTable.TWEET, tweet.getText());
|
||||
status.put(TweetTable.EMBEDDED, rtId);
|
||||
status.put(TweetTable.SOURCE, tweet.getSource());
|
||||
status.put(TweetTable.REPLYTWEET, tweet.getReplyId());
|
||||
status.put(TweetTable.REPLYTWEET, tweet.getRepliedTweetId());
|
||||
status.put(TweetTable.RETWEET, tweet.getRetweetCount());
|
||||
status.put(TweetTable.FAVORITE, tweet.getFavoriteCount());
|
||||
status.put(TweetTable.REPLYUSER, tweet.getReplyUserId());
|
||||
status.put(TweetTable.REPLYUSER, tweet.getRepliedUserId());
|
||||
status.put(TweetTable.PLACE, tweet.getLocationName());
|
||||
status.put(TweetTable.COORDINATE, tweet.getLocationCoordinates());
|
||||
status.put(TweetTable.REPLYUSER, tweet.getReplyUserId());
|
||||
status.put(TweetTable.REPLYUSER, tweet.getRepliedUserId());
|
||||
status.put(TweetTable.REPLYNAME, tweet.getReplyName());
|
||||
|
||||
db.insertWithOnConflict(TweetTable.NAME, "", status, CONFLICT_REPLACE);
|
||||
|
@ -127,12 +127,12 @@ public class TweetImpl implements Tweet {
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getReplyUserId() {
|
||||
public long getRepliedUserId() {
|
||||
return replyUserId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getReplyId() {
|
||||
public long getRepliedTweetId() {
|
||||
return replyID;
|
||||
}
|
||||
|
||||
|
@ -73,12 +73,12 @@ public interface Tweet extends Serializable {
|
||||
/**
|
||||
* @return ID of the replied tweet's author
|
||||
*/
|
||||
long getReplyUserId();
|
||||
long getRepliedUserId();
|
||||
|
||||
/**
|
||||
* @return ID of the replied tweet
|
||||
*/
|
||||
long getReplyId();
|
||||
long getRepliedTweetId();
|
||||
|
||||
/**
|
||||
* @return ID of the tweet retweeted by the current user
|
||||
|
@ -403,7 +403,7 @@ public class TweetActivity extends AppCompatActivity implements OnClickListener,
|
||||
// open replied tweet
|
||||
else if (v.getId() == R.id.tweet_answer_reference) {
|
||||
Intent answerIntent = new Intent(getApplicationContext(), TweetActivity.class);
|
||||
answerIntent.putExtra(KEY_TWEET_ID, clickedTweet.getReplyId());
|
||||
answerIntent.putExtra(KEY_TWEET_ID, clickedTweet.getRepliedTweetId());
|
||||
answerIntent.putExtra(KEY_TWEET_NAME, clickedTweet.getReplyName());
|
||||
startActivity(answerIntent);
|
||||
}
|
||||
@ -602,7 +602,7 @@ public class TweetActivity extends AppCompatActivity implements OnClickListener,
|
||||
} else {
|
||||
tweetText.setVisibility(GONE);
|
||||
}
|
||||
if (tweetUpdate.getReplyId() > 0) {
|
||||
if (tweetUpdate.getRepliedTweetId() > 0) {
|
||||
replyName.setText(tweetUpdate.getReplyName());
|
||||
replyName.setVisibility(VISIBLE);
|
||||
} else {
|
||||
|
@ -5,7 +5,7 @@
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:pathData="M108,65.8V108H77.35L44.29,76.36c0.1,-3.32 2.83,-5.98 6.17,-5.98c1.49,0 2.92,-0.21 4.29,-0.58c6.82,-1.87 11.84,-8.13 11.84,-15.55c0,-1.94 -0.34,-3.8 -0.97,-5.53c0.1,0.74 0.16,1.5 0.16,2.27c0,8.91 -7.221,16.13 -16.13,16.13c-1.66,0 -3.17,0.649 -4.28,1.729l-5.04,-4.6c-0.62,-0.37 -1.21,-0.81 -1.78,-1.3c-3.71,-3.29 -4.95,-8.33 -3.58,-12.79l2.09,2.23l8.391,8.95l1.87,0.07l-6.16,-6.6c-1.22,-0.73 -2.29,-1.7 -3.11,-2.87c-0.819,-1.16 -1.39,-2.52 -1.649,-3.99l-0.08,-0.52c-0.021,-0.2 -0.04,-0.4 -0.051,-0.59c-0.279,-4.51 2.49,-8.5 6.53,-9.97l6.561,7.65l-0.021,-0.05v-0.01c-0.25,-0.72 -0.399,-1.47 -0.45,-2.24c-0.08,-1.29 0.13,-2.54 0.601,-3.7c0.359,-0.88 0.87,-1.7 1.51,-2.43c1.5,-1.69 3.57,-2.7 5.82,-2.84c0.449,-0.02 0.89,-0.02 1.319,0.02c0.091,0.01 0.181,0.02 0.28,0.03c1.67,0.21 3.24,0.92 4.53,2.06c0.01,0.02 0.03,0.03 0.05,0.05c0.05,0.04 0.1,0.09 0.15,0.14c0.13,0.12 0.26,0.25 0.38,0.38l10.04,-4.29L108,65.8z"
|
||||
android:fillColor="#FFA500" />
|
||||
android:fillColor="#ee9500" />
|
||||
<path
|
||||
android:pathData="M66.59,54.25c0,7.424 -5.018,13.677 -11.844,15.551c-1.363,0.374 -2.799,0.574 -4.281,0.574c-3.348,0 -6.072,2.664 -6.17,5.989c-0.521,-0.905 -0.818,-1.954 -0.818,-3.072c0,-1.485 0.523,-2.848 1.398,-3.913c0.061,-0.076 0.125,-0.149 0.189,-0.222c0.098,-0.107 0.197,-0.212 0.303,-0.312c1.109,-1.071 2.619,-1.729 4.283,-1.729c8.906,0 16.125,-7.219 16.125,-16.124c0,-0.771 -0.055,-1.529 -0.156,-2.271C66.248,50.446 66.59,52.308 66.59,54.25z"
|
||||
android:fillColor="#FFFFFF" />
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 67 KiB |
Loading…
x
Reference in New Issue
Block a user