Skip to content

Commit

Permalink
misc changes to string and toast display
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowbluesky committed Sep 29, 2019
1 parent 8444d5b commit 14ac3cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion app/src/main/java/com/antony/muzei/pixiv/PixivArtWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -687,16 +687,19 @@ private Artwork getArtwork()
switch (authFailMode)
{
case "changeDaily":
Log.d(LOG_TAG, "Auth failed, changing mode to daily");
sharedPrefs.edit().putString("pref_updateMode", "daily_rank").apply();
mode = "daily_ranking";
handler.post(() -> Toast.makeText(getApplicationContext(), R.string.toast_authFailedSwitch, Toast.LENGTH_SHORT).show());
break;
case "doNotChange_downDaily":
Log.d(LOG_TAG, "Auth failed, downloading a single daily");
mode = "daily_ranking";
handler.post(() -> Toast.makeText(getApplicationContext(), R.string.toast_authFailedDown, Toast.LENGTH_SHORT).show());
break;
case "doNotChange_doNotDown":
//handler.post(() -> Toast.makeText(getApplicationContext(), R.string.toast_authFailedRetry, Toast.LENGTH_SHORT).show());
Log.d(LOG_TAG, "Auth failed, retrying with no changes");
handler.post(() -> Toast.makeText(getApplicationContext(), R.string.toast_authFailedRetry, Toast.LENGTH_SHORT).show());
return null;
}
}
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/xml/feed_preferences_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@
</PreferenceCategory>
<PreferenceCategory android:title="@string/prefCat_about">
<Preference android:title="yellowbluesky"
android:summary="Main developer" >
android:summary="@string/prefTitle_mainDeveloper" >
<intent
android:action="android.intent.action.VIEW"
android:data="https://github.com/yellowbluesky/PixivforMuzei3" />
</Preference>
<Preference android:title="Perol_Notsfsssf"
android:summary="Key Contributor" >
android:summary="@string/prefTitle_keyContributor" >
<intent
android:action="android.intent.action.VIEW"
android:data="https://github.com/Notsfsssf/Pix-EzViewer" />
Expand Down

0 comments on commit 14ac3cb

Please sign in to comment.