Fix some issues
This commit is contained in:
parent
5f5ed0ac95
commit
dc50da59df
|
@ -179,6 +179,7 @@ public abstract class BaseMainActivity extends BaseActivity
|
||||||
public static String regex_home, regex_local, regex_public;
|
public static String regex_home, regex_local, regex_public;
|
||||||
public static boolean show_boosts, show_replies, show_art_nsfw;
|
public static boolean show_boosts, show_replies, show_art_nsfw;
|
||||||
public static iconLauncher mLauncher = iconLauncher.BUBBLES;
|
public static iconLauncher mLauncher = iconLauncher.BUBBLES;
|
||||||
|
public static boolean isAttached = false;
|
||||||
private static boolean notificationChecked = false;
|
private static boolean notificationChecked = false;
|
||||||
private final int PICK_IMPORT = 5556;
|
private final int PICK_IMPORT = 5556;
|
||||||
private FloatingActionButton toot, delete_all, add_new;
|
private FloatingActionButton toot, delete_all, add_new;
|
||||||
|
@ -202,7 +203,6 @@ public abstract class BaseMainActivity extends BaseActivity
|
||||||
private View dialogReleaseNoteView;
|
private View dialogReleaseNoteView;
|
||||||
private List<Account> developers;
|
private List<Account> developers;
|
||||||
|
|
||||||
public static boolean isAttached = false;
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
@ -2375,15 +2375,6 @@ public abstract class BaseMainActivity extends BaseActivity
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum iconLauncher {
|
|
||||||
BUBBLES,
|
|
||||||
FEDIVERSE,
|
|
||||||
HERO,
|
|
||||||
ATOM,
|
|
||||||
BRAINCRASH,
|
|
||||||
MASTALAB
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onAttachedToWindow() {
|
public void onAttachedToWindow() {
|
||||||
super.onAttachedToWindow();
|
super.onAttachedToWindow();
|
||||||
|
@ -2396,6 +2387,15 @@ public abstract class BaseMainActivity extends BaseActivity
|
||||||
isAttached = false;
|
isAttached = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum iconLauncher {
|
||||||
|
BUBBLES,
|
||||||
|
FEDIVERSE,
|
||||||
|
HERO,
|
||||||
|
ATOM,
|
||||||
|
BRAINCRASH,
|
||||||
|
MASTALAB
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Page Adapter for Mastodon & Peertube & PixelFed
|
* Page Adapter for Mastodon & Peertube & PixelFed
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -233,7 +233,8 @@ public class Account implements Parcelable {
|
||||||
displayNameSpan.setSpan(
|
displayNameSpan.setSpan(
|
||||||
imageSpan, startPosition,
|
imageSpan, startPosition,
|
||||||
endPosition, Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
|
endPosition, Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
|
||||||
}catch (Exception ignored){}
|
} catch (Exception ignored) {
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -899,7 +899,8 @@ public class Status implements Parcelable {
|
||||||
contentSpan.setSpan(
|
contentSpan.setSpan(
|
||||||
imageSpan, startPosition,
|
imageSpan, startPosition,
|
||||||
endPosition, Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
|
endPosition, Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
|
||||||
}catch (Exception ignored){}
|
} catch (Exception ignored) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1792,7 +1792,7 @@ public class Helper {
|
||||||
if (!accountChoice.getAvatar().startsWith("http"))
|
if (!accountChoice.getAvatar().startsWith("http"))
|
||||||
accountChoice.setAvatar("https://" + accountChoice.getInstance() + accountChoice.getAvatar());
|
accountChoice.setAvatar("https://" + accountChoice.getInstance() + accountChoice.getAvatar());
|
||||||
ImageView itemIconAcc = new ImageView(activity);
|
ImageView itemIconAcc = new ImageView(activity);
|
||||||
if( !activity.isFinishing() && isAttached) {
|
if (!activity.isFinishing() && isAttached) {
|
||||||
try {
|
try {
|
||||||
Glide.with(activity)
|
Glide.with(activity)
|
||||||
.asDrawable()
|
.asDrawable()
|
||||||
|
@ -1825,7 +1825,8 @@ public class Helper {
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}catch (Exception ignored){}
|
} catch (Exception ignored) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (accounts.size() > 2) {
|
if (accounts.size() > 2) {
|
||||||
|
@ -1933,7 +1934,7 @@ public class Helper {
|
||||||
}
|
}
|
||||||
if (!urlHeader.contains("missing.png")) {
|
if (!urlHeader.contains("missing.png")) {
|
||||||
ImageView backgroundImage = headerLayout.findViewById(R.id.back_ground_image);
|
ImageView backgroundImage = headerLayout.findViewById(R.id.back_ground_image);
|
||||||
if( !activity.isFinishing() && isAttached) {
|
if (!activity.isFinishing() && isAttached) {
|
||||||
try {
|
try {
|
||||||
Glide.with(activity)
|
Glide.with(activity)
|
||||||
.asDrawable()
|
.asDrawable()
|
||||||
|
@ -1956,7 +1957,8 @@ public class Helper {
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}catch (Exception ignored){}
|
} catch (Exception ignored) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue