fixing BadParcelableException
This commit is contained in:
parent
606ff82747
commit
b467c96b79
|
@ -48,4 +48,4 @@
|
||||||
|
|
||||||
# Fuck shitsung http://stackoverflow.com/a/34896262/859190
|
# Fuck shitsung http://stackoverflow.com/a/34896262/859190
|
||||||
# ... and fuck xiaomi http://crashes.to/s/675ac9aff5e
|
# ... 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.sqliteqb.library.Expression;
|
||||||
import org.mariotaku.twidere.R;
|
import org.mariotaku.twidere.R;
|
||||||
import org.mariotaku.twidere.adapter.AccountsAdapter;
|
import org.mariotaku.twidere.adapter.AccountsAdapter;
|
||||||
|
import org.mariotaku.twidere.app.TwidereApplication;
|
||||||
import org.mariotaku.twidere.model.ParcelableAccount;
|
import org.mariotaku.twidere.model.ParcelableAccount;
|
||||||
import org.mariotaku.twidere.model.ParcelableCredentials;
|
import org.mariotaku.twidere.model.ParcelableCredentials;
|
||||||
import org.mariotaku.twidere.provider.TwidereDataStore.Accounts;
|
import org.mariotaku.twidere.provider.TwidereDataStore.Accounts;
|
||||||
|
@ -238,7 +239,9 @@ public class AccountSelectorActivity extends BaseActivity implements
|
||||||
|
|
||||||
private Intent getStartIntent() {
|
private Intent getStartIntent() {
|
||||||
final Intent intent = getIntent();
|
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…
Reference in New Issue