Browse Source

Fixes for alpha release.

pull/24/head
Apostolos Fanakis 8 years ago
parent
commit
ef1ff519c2
  1. 2
      VERSION
  2. 4
      app/build.gradle
  3. 2
      app/src/main/java/gr/thmmy/mthmmy/activities/profile/stats/StatsFragment.java
  4. 9
      app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java
  5. BIN
      app/src/main/res/drawable/fun.jpg

2
VERSION

@ -1 +1 @@
0.7 1.0.0

4
app/build.gradle

@ -9,8 +9,8 @@ android {
applicationId "gr.thmmy.mthmmy" applicationId "gr.thmmy.mthmmy"
minSdkVersion 19 minSdkVersion 19
targetSdkVersion 25 targetSdkVersion 25
versionCode 5 versionCode 1
versionName "0.7" versionName "1.0.0"
archivesBaseName = "mTHMMY-v$versionName" archivesBaseName = "mTHMMY-v$versionName"
} }

2
app/src/main/java/gr/thmmy/mthmmy/activities/profile/stats/StatsFragment.java

@ -5,7 +5,6 @@ import android.os.AsyncTask;
import android.os.Build; import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.support.v4.app.Fragment; import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
@ -211,7 +210,6 @@ public class StatsFragment extends Fragment {
{ {
Elements mostPopularBoardsByActivityRows = statsRows.last().select(">td").last() Elements mostPopularBoardsByActivityRows = statsRows.last().select(">td").last()
.select(">table>tbody>tr"); .select(">table>tbody>tr");
Log.d(TAG, String.valueOf(mostPopularBoardsByActivityRows.size()));
int i = mostPopularBoardsByActivityRows.size(); int i = mostPopularBoardsByActivityRows.size();
for (Element mostPopularBoardsByActivityRow : mostPopularBoardsByActivityRows) { for (Element mostPopularBoardsByActivityRow : mostPopularBoardsByActivityRows) {
Elements dataCols = mostPopularBoardsByActivityRow.select("td"); Elements dataCols = mostPopularBoardsByActivityRow.select("td");

9
app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java

@ -16,7 +16,6 @@ import android.support.v4.content.res.ResourcesCompat;
import android.support.v7.widget.CardView; import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView; import android.support.v7.widget.RecyclerView;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.MotionEvent; import android.view.MotionEvent;
import android.view.View; import android.view.View;
@ -388,18 +387,14 @@ class TopicAdapter extends RecyclerView.Adapter<TopicAdapter.MyViewHolder> {
@Override @Override
public void onClick(View view) { public void onClick(View view) {
boolean[] tmp = viewProperties.get(holder.getAdapterPosition()); boolean[] tmp = viewProperties.get(holder.getAdapterPosition());
Log.d(TAG, "GOT");
if (tmp[isQuoteButtonChecked]) { if (tmp[isQuoteButtonChecked]) {
if (toQuoteList.contains(currentPost.getPostNumber())) { if (toQuoteList.contains(currentPost.getPostNumber())) {
toQuoteList.remove(toQuoteList.indexOf(currentPost.getPostNumber())); toQuoteList.remove(toQuoteList.indexOf(currentPost.getPostNumber()));
Log.d(TAG, "GOT1");
} else } else
Log.d(TAG, "GOT2"); Report.i(TAG, "An error occurred while trying to exclude post from" +
//Report.i(TAG, "An error occurred while trying to exclude post from" + "toQuoteList, post wasn't there!");
// "toQuoteList, post wasn't there!");
holder.quoteToggle.setImageResource(R.drawable.ic_format_quote_unchecked); holder.quoteToggle.setImageResource(R.drawable.ic_format_quote_unchecked);
} else { } else {
Log.d(TAG, "GOT3");
toQuoteList.add(currentPost.getPostNumber()); toQuoteList.add(currentPost.getPostNumber());
holder.quoteToggle.setImageResource(R.drawable.ic_format_quote_checked); holder.quoteToggle.setImageResource(R.drawable.ic_format_quote_checked);
} }

BIN
app/src/main/res/drawable/fun.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 84 KiB

Loading…
Cancel
Save