Removing some synthetic method creation
> Make package-private and @Thunk all private methods and constructors accessed from inner classes. Change-Id: Ie5913860a0c33e48e9bf68f9b5b1699f64c2f174
This commit is contained in:
1 parent
c1cd23b4a7
commit
316490e636
20 files changed
+62
-59
No files matched your search
@@ -19,6 +19,7 @@ import android.content.Context;
|
||||
|
||||
import com.android.launcher3.AppInfo;
|
||||
import com.android.launcher3.ItemInfo;
|
||||
import com.android.launcher3.util.Thunk;
|
||||
|
||||
import java.text.Collator;
|
||||
import java.util.Comparator;
|
||||
@@ -82,7 +83,7 @@ public class AppNameComparator {
|
||||
/**
|
||||
* Compares two titles with the same return value semantics as Comparator.
|
||||
*/
|
||||
private int compareTitles(String titleA, String titleB) {
|
||||
@Thunk int compareTitles(String titleA, String titleB) {
|
||||
// Ensure that we de-prioritize any titles that don't start with a linguistic letter or digit
|
||||
boolean aStartsWithLetter = Character.isLetterOrDigit(titleA.codePointAt(0));
|
||||
boolean bStartsWithLetter = Character.isLetterOrDigit(titleB.codePointAt(0));
|
||||
|
||||
Reference in new issue
Block a user