|
|
@ -7,7 +7,6 @@ import android.support.design.widget.FloatingActionButton; |
|
|
|
import android.support.v7.widget.DividerItemDecoration; |
|
|
|
import android.support.v7.widget.LinearLayoutManager; |
|
|
|
import android.support.v7.widget.RecyclerView; |
|
|
|
import android.util.Log; |
|
|
|
import android.view.View; |
|
|
|
import android.widget.ImageButton; |
|
|
|
import android.widget.ProgressBar; |
|
|
@ -73,6 +72,12 @@ public class BoardActivity extends BaseActivity implements BoardAdapter.OnLoadMo |
|
|
|
Toast.makeText(this, "An error has occurred\nAborting.", Toast.LENGTH_SHORT).show(); |
|
|
|
finish(); |
|
|
|
} |
|
|
|
//Fixes url
|
|
|
|
{ |
|
|
|
String tmpUrlSbstr = boardUrl.replaceAll("(.+)(board=)([0-9]*)(\\.*[0-9]*).*", "$1$2$3"); |
|
|
|
if (!tmpUrlSbstr.substring(tmpUrlSbstr.indexOf("board=")).contains(".")) |
|
|
|
boardUrl = tmpUrlSbstr + ".0"; |
|
|
|
} |
|
|
|
|
|
|
|
//Initializes graphics
|
|
|
|
toolbar = findViewById(R.id.toolbar); |
|
|
@ -164,7 +169,6 @@ public class BoardActivity extends BaseActivity implements BoardAdapter.OnLoadMo |
|
|
|
@Override |
|
|
|
public void onResume() { |
|
|
|
super.onResume(); |
|
|
|
Log.d("Boardaa", "onResume called!"); |
|
|
|
refreshBoardBookmark((ImageButton) findViewById(R.id.bookmark)); |
|
|
|
} |
|
|
|
|
|
|
|