diff --git a/twidere/src/main/java/org/mariotaku/twidere/activity/support/HomeActivity.java b/twidere/src/main/java/org/mariotaku/twidere/activity/support/HomeActivity.java index b8dbe5125..04d830c17 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/activity/support/HomeActivity.java +++ b/twidere/src/main/java/org/mariotaku/twidere/activity/support/HomeActivity.java @@ -341,15 +341,15 @@ public class HomeActivity extends BaseAppCompatActivity implements OnClickListen mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); mMultiSelectHandler = new MultiSelectEventHandler(this); mMultiSelectHandler.dispatchOnCreate(); -// if (!Utils.hasAccount(this)) { -// final Intent signInIntent = new Intent(INTENT_ACTION_TWITTER_LOGIN); -// signInIntent.setClass(this, SignInActivity.class); -// startActivity(signInIntent); -// finish(); -// return; -// } else { -// notifyAccountsChanged(); -// } + if (!Utils.hasAccount(this)) { + final Intent signInIntent = new Intent(INTENT_ACTION_TWITTER_LOGIN); + signInIntent.setClass(this, SignInActivity.class); + startActivity(signInIntent); + finish(); + return; + } else { + notifyAccountsChanged(); + } final Intent intent = getIntent(); if (openSettingsWizard()) { finish(); @@ -482,7 +482,8 @@ public class HomeActivity extends BaseAppCompatActivity implements OnClickListen // spice SpiceProfilingUtil.profile(this, SpiceProfilingUtil.FILE_NAME_APP, "App Stop"); - SpiceProfilingUtil.profile(this, SpiceProfilingUtil.FILE_NAME_ONLAUNCH, "App Stop" + "," + NetworkStateUtil.getConnectedType(this) + "," + Build.MODEL); + SpiceProfilingUtil.profile(this, SpiceProfilingUtil.FILE_NAME_ONLAUNCH, "App Stop" + "," + + NetworkStateUtil.getConnectedType(this) + "," + Build.MODEL); //end super.onStop(); } diff --git a/twidere/src/main/res/values/strings.xml b/twidere/src/main/res/values/strings.xml index cc4ac4940..21590b7bd 100644 --- a/twidere/src/main/res/values/strings.xml +++ b/twidere/src/main/res/values/strings.xml @@ -761,4 +761,5 @@ Dark theme Location permission Twidere needs location permission when you send tweet containing location. + Scrapyard \ No newline at end of file diff --git a/twidere/src/main/res/xml/preferences_cards.xml b/twidere/src/main/res/xml/preferences_cards.xml index a481be734..94475f52d 100644 --- a/twidere/src/main/res/xml/preferences_cards.xml +++ b/twidere/src/main/res/xml/preferences_cards.xml @@ -1,25 +1,28 @@ + xmlns:app="http://schemas.android.com/apk/res-auto" + android:title="@string/cards"> - + - + android:summary="@string/text_size_summary" + android:title="@string/size" + app:max="24" + app:min="12" + app:progressTextSuffix="sp"> - + android:value="true"/> + + android:value="true"/> - - - - + android:value="true"/> - - - + android:value="true"/> - - - - - - + android:value="true"/> + android:value="true"/> \ No newline at end of file diff --git a/twidere/src/main/res/xml/preferences_interface.xml b/twidere/src/main/res/xml/preferences_interface.xml index aab72f261..c081d905f 100644 --- a/twidere/src/main/res/xml/preferences_interface.xml +++ b/twidere/src/main/res/xml/preferences_interface.xml @@ -5,51 +5,6 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/twidere/src/main/res/xml/preferences_other.xml b/twidere/src/main/res/xml/preferences_other.xml index 0a854c59b..52cbc9625 100644 --- a/twidere/src/main/res/xml/preferences_other.xml +++ b/twidere/src/main/res/xml/preferences_other.xml @@ -39,7 +39,6 @@ + + + + \ No newline at end of file diff --git a/twidere/src/main/res/xml/preferences_scrapyard.xml b/twidere/src/main/res/xml/preferences_scrapyard.xml new file mode 100644 index 000000000..421058489 --- /dev/null +++ b/twidere/src/main/res/xml/preferences_scrapyard.xml @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/twidere/src/main/res/xml/preferences_theme.xml b/twidere/src/main/res/xml/preferences_theme.xml index 41f73b210..f2e3701a9 100644 --- a/twidere/src/main/res/xml/preferences_theme.xml +++ b/twidere/src/main/res/xml/preferences_theme.xml @@ -13,8 +13,8 @@ + + + + \ No newline at end of file diff --git a/twidere/src/main/res/xml/settings_headers.xml b/twidere/src/main/res/xml/settings_headers.xml index 6a43110cf..1990ddc33 100644 --- a/twidere/src/main/res/xml/settings_headers.xml +++ b/twidere/src/main/res/xml/settings_headers.xml @@ -10,14 +10,6 @@ android:name="resid" android:value="@xml/preferences_theme"/> -
- -