|
|
@ -5,6 +5,7 @@ import android.graphics.Color; |
|
|
|
import android.graphics.Typeface; |
|
|
|
import android.net.Uri; |
|
|
|
import android.os.AsyncTask; |
|
|
|
import android.os.Build; |
|
|
|
import android.os.Bundle; |
|
|
|
import android.support.design.widget.FloatingActionButton; |
|
|
|
import android.support.design.widget.TabLayout; |
|
|
@ -13,6 +14,7 @@ import android.support.v4.app.FragmentManager; |
|
|
|
import android.support.v4.app.FragmentPagerAdapter; |
|
|
|
import android.support.v4.content.res.ResourcesCompat; |
|
|
|
import android.support.v4.view.ViewPager; |
|
|
|
import android.support.v7.app.AppCompatDelegate; |
|
|
|
import android.text.Spannable; |
|
|
|
import android.text.SpannableString; |
|
|
|
import android.text.Spanned; |
|
|
@ -92,6 +94,13 @@ public class ProfileActivity extends BaseActivity implements LatestPostsFragment |
|
|
|
private String username; |
|
|
|
private int tabSelect; |
|
|
|
|
|
|
|
//Fix for vector drawables on android <21
|
|
|
|
static { |
|
|
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) { |
|
|
|
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
protected void onCreate(Bundle savedInstanceState) { |
|
|
|
super.onCreate(savedInstanceState); |
|
|
|