Browse Source

AboutActivity displays debug version, reenabled quotes

pull/24/head
Ezerous 7 years ago
parent
commit
17d9083a4d
  1. 8
      app/src/main/java/gr/thmmy/mthmmy/activities/AboutActivity.java
  2. 1
      app/src/main/java/gr/thmmy/mthmmy/activities/main/recent/RecentFragment.java
  3. 1
      app/src/main/res/layout-v21/activity_topic_post_row.xml
  4. 1
      app/src/main/res/layout/activity_topic_post_row.xml

8
app/src/main/java/gr/thmmy/mthmmy/activities/AboutActivity.java

@ -33,6 +33,7 @@ public class AboutActivity extends BaseActivity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_about); setContentView(R.layout.activity_about);
String versionName = BuildConfig.VERSION_NAME; String versionName = BuildConfig.VERSION_NAME;
String buildType = BuildConfig.BUILD_TYPE;
//Initialize appbar //Initialize appbar
appBar = findViewById(R.id.appbar); appBar = findViewById(R.id.appbar);
@ -54,7 +55,12 @@ public class AboutActivity extends BaseActivity {
TextView tv = findViewById(R.id.version); TextView tv = findViewById(R.id.version);
if (tv != null) if (tv != null)
tv.setText(getString(R.string.version, versionName)); {
if(buildType.equals("debug"))
tv.setText(getString(R.string.version, versionName + "-debug"));
else
tv.setText(getString(R.string.version, versionName));
}
tv.setOnClickListener(new View.OnClickListener() { tv.setOnClickListener(new View.OnClickListener() {
@Override @Override

1
app/src/main/java/gr/thmmy/mthmmy/activities/main/recent/RecentFragment.java

@ -1,6 +1,5 @@
package gr.thmmy.mthmmy.activities.main.recent; package gr.thmmy.mthmmy.activities.main.recent;
import android.graphics.Color;
import android.os.AsyncTask; import android.os.AsyncTask;
import android.os.Bundle; import android.os.Bundle;
import android.support.v4.widget.SwipeRefreshLayout; import android.support.v4.widget.SwipeRefreshLayout;

1
app/src/main/res/layout-v21/activity_topic_post_row.xml

@ -96,7 +96,6 @@
android:clickable="true" android:clickable="true"
android:contentDescription="@string/post_quote_button" android:contentDescription="@string/post_quote_button"
android:focusable="true" android:focusable="true"
android:src="@drawable/ic_format_quote_unchecked" /> android:src="@drawable/ic_format_quote_unchecked" />
</LinearLayout> </LinearLayout>

1
app/src/main/res/layout/activity_topic_post_row.xml

@ -95,7 +95,6 @@
android:clickable="true" android:clickable="true"
android:contentDescription="@string/post_quote_button" android:contentDescription="@string/post_quote_button"
android:focusable="true" android:focusable="true"
android:visibility="gone"
android:src="@drawable/ic_format_quote_unchecked" /> android:src="@drawable/ic_format_quote_unchecked" />
</LinearLayout> </LinearLayout>

Loading…
Cancel
Save