-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redesign the app (un)install receiver
- Packages will be refreshed individually whenever neccesary - Refreshing directly modifies SearchActivity.appInfoList.backingAppInfoList if it's available at WeakReference App.backingAppInfoList - LocaleChangeReceiver triggers a full refresh when changing the system language - In the preferences' title bar there is now a refresh button, just in case - IconCache.tryIconCaching() no longer returns true if icon already exists instead the icon gets refreshed anyway - IconCache.getIconCacheFile() has been centralized into AppInfo
- Loading branch information
1 parent
b8d7742
commit e6466af
Showing
16 changed files
with
470 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
android/src/main/java/org/ligi/fast/background/LocaleChangeReceiver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.ligi.fast.background; | ||
|
||
import android.content.BroadcastReceiver; | ||
import android.content.Context; | ||
import android.content.Intent; | ||
|
||
import org.ligi.fast.App; | ||
import org.ligi.fast.model.AppInfoList; | ||
import org.ligi.fast.util.AppInfoListStore; | ||
|
||
/** | ||
* Refreshes the whole AppInfoList to update labels when the user changes the system language | ||
*/ | ||
public class LocaleChangeReceiver extends BroadcastReceiver { | ||
@Override | ||
public void onReceive(Context context, Intent intent) { | ||
new BackgroundGatherAsyncTask(context).execute(); | ||
} | ||
} |
Oops, something went wrong.