bug fix, cleanup

This commit is contained in:
NudeDude 2019-05-05 21:15:20 +02:00
parent 1a4c2cf7e2
commit ba76834971
10 changed files with 16 additions and 20 deletions

View File

@ -10,11 +10,12 @@ android {
targetSdkVersion 28
versionCode 1
versionName '1.4.2'
vectorDrawables.useSupportLibrary = true
vectorDrawables.useSupportLibrary true
}
buildTypes {
all {
multiDexEnabled true
buildConfigField "String", "API_KEY_1", TWITTER_CONSUMER_KEY
buildConfigField "String", "API_KEY_2", TWITTER_CONSUMER_SECRET
}

View File

@ -83,7 +83,7 @@ public class StatusLoader extends AsyncTask<Long, Void, Void> {
}
tweet = mTwitter.getStatus(TWEETID);
publishProgress();
if (!updateStatus)
if (updateStatus)
db.updateStatus(tweet);
break;

View File

@ -4,7 +4,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"

View File

@ -70,7 +70,7 @@
android:layout_weight="1"
android:gravity="end"
android:textAlignment="gravity"
android:textSize="12sp" />
android:textSize="14sp" />
</LinearLayout>

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -14,8 +13,7 @@
<android.support.design.widget.TabLayout
android:id="@+id/home_tab"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:tabTextAppearance="@style/CustomTextAppearance"/>
android:layout_height="wrap_content" />
<android.support.v4.view.ViewPager
android:id="@+id/home_pager"

View File

@ -188,7 +188,8 @@
android:id="@+id/answer_button"
android:layout_width="@dimen/tweet_page_icon"
android:layout_height="@dimen/tweet_page_icon"
android:layout_marginRight="@dimen/tweet_footer_icon_dist"
android:layout_marginRight="100dp"
android:layout_marginEnd="100dp"
android:contentDescription="@string/answer_button"
app:srcCompat="@drawable/answer" />
@ -203,10 +204,11 @@
<TextView
android:id="@+id/no_rt_detail"
android:layout_width="@dimen/tweet_footer_icon_dist"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginRight="5dp"
android:ems="10"
android:layout_marginEnd="5dp"
android:layout_weight="3"
android:gravity="center_vertical"
android:singleLine="true"
android:textSize="12sp" />
@ -222,9 +224,9 @@
<TextView
android:id="@+id/no_fav_detail"
android:layout_width="@dimen/tweet_footer_icon_dist"
android:layout_width="0dp"
android:layout_height="match_parent"
android:ems="10"
android:layout_weight="3"
android:gravity="center_vertical"
android:singleLine="true"
android:textSize="12sp" />

View File

@ -15,5 +15,4 @@
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>

View File

@ -4,7 +4,7 @@
<dimen name="profile_image">64dp</dimen>
<dimen name="profile_middle">40dp</dimen>
<dimen name="profile_small">32dp</dimen>
<dimen name="profile_small">36dp</dimen>
<dimen name="icon_size">14dp</dimen>
@ -50,9 +50,10 @@
<!--Tabs-->
<dimen name="tab_padding_top">5dp</dimen>
<dimen name="tweet_footer_icon_dist">100dp</dimen>
<dimen name="tweet_footer_icon_dist">80dp</dimen>
<!--Text limitation-->
<integer name="tweet_max_line">10</integer>
<integer name="max_bio_lines">5</integer>
</resources>

View File

@ -52,8 +52,4 @@
<item name="android:fontFamily">RobotoTextView</item>
</style>
<style name="CustomTextAppearance" parent="TextAppearance.Design.Tab">
<item name="android:textAllCaps">false</item>
</style>
</resources>

View File

@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.1'
classpath 'com.android.tools.build:gradle:3.4.0'
}
}