mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-01-28 15:39:32 +01:00
fixing BadParcelableException
This commit is contained in:
parent
606ff82747
commit
b467c96b79
2
twidere/proguard-rules.pro
vendored
2
twidere/proguard-rules.pro
vendored
@ -48,4 +48,4 @@
|
||||
|
||||
# Fuck shitsung http://stackoverflow.com/a/34896262/859190
|
||||
# ... and fuck xiaomi http://crashes.to/s/675ac9aff5e
|
||||
-keep class !android.support.v7.view.menu.MenuBuilder, !org.apache.commons.** { *; }
|
||||
-keep class !android.support.v7.view.menu.*MenuBuilder*, !org.apache.commons.** { *; }
|
||||
|
@ -41,6 +41,7 @@ import org.mariotaku.sqliteqb.library.Columns;
|
||||
import org.mariotaku.sqliteqb.library.Expression;
|
||||
import org.mariotaku.twidere.R;
|
||||
import org.mariotaku.twidere.adapter.AccountsAdapter;
|
||||
import org.mariotaku.twidere.app.TwidereApplication;
|
||||
import org.mariotaku.twidere.model.ParcelableAccount;
|
||||
import org.mariotaku.twidere.model.ParcelableCredentials;
|
||||
import org.mariotaku.twidere.provider.TwidereDataStore.Accounts;
|
||||
@ -238,7 +239,9 @@ public class AccountSelectorActivity extends BaseActivity implements
|
||||
|
||||
private Intent getStartIntent() {
|
||||
final Intent intent = getIntent();
|
||||
return intent.getParcelableExtra(EXTRA_START_INTENT);
|
||||
final Intent startIntent = intent.getParcelableExtra(EXTRA_START_INTENT);
|
||||
startIntent.setExtrasClassLoader(TwidereApplication.class.getClassLoader());
|
||||
return startIntent;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user