implementation "com.android.support:design:${SUPPORT_LIBRARY_VERSION}"
//noinspection GradleDependency
implementation 'com.mikepenz:iconics-core:3.0.4'
- implementation 'com.mikepenz:foundation-icons-typeface:3.0.0.5'
+ //noinspection GradleDependency
+ implementation 'com.mikepenz:foundation-icons-typeface:3.0.0.4'
implementation 'moe.banana:toast-compat:1.0.5'
implementation group:'com.twofortyfouram', name:'android-plugin-api-for-locale', version:'[1.0.2,2.0['
}
Collections.reverse(usageStatsList6);
}
- // Generate the AppEntries for TaskbarAdapter
+ // Generate the AppEntries for the recent apps list
int number = usageStatsList6.size() == maxNumOfEntries
? usageStatsList6.size() - realNumOfPinnedApps
: usageStatsList6.size();
for(int i = 0; i < number; i++) {
for(UserHandle handle : userHandles) {
String packageName = usageStatsList6.get(i).getPackageName();
+ long lastTimeUsed = usageStatsList6.get(i).getLastTimeUsed();
List<LauncherActivityInfo> list = launcherApps.getActivityList(packageName, handle);
if(!list.isEmpty()) {
// Google App workaround
);
newEntry.setUserId(userManager.getSerialNumberForUser(handle));
+ newEntry.setLastTimeUsed(lastTimeUsed);
entries.add(newEntry);
break;
launcherAppCachePos++;
LauncherActivityInfo appInfo = launcherAppCache.get(launcherAppCachePos);
String packageName = entries.get(i).getPackageName();
+ long lastTimeUsed = entries.get(i).getLastTimeUsed();
entries.remove(i);
false);
newEntry.setUserId(userManager.getSerialNumberForUser(appInfo.getUser()));
+ newEntry.setLastTimeUsed(lastTimeUsed);
entries.add(i, newEntry);
}
}
}
FrameLayout layout = convertView.findViewById(R.id.entry);
- layout.setOnClickListener(view -> U.launchApp(this, entry.getPackageName(), entry.getComponentName(), entry.getUserId(this), null, true, false));
+ layout.setOnClickListener(view -> U.launchApp(
+ this,
+ entry.getPackageName(),
+ entry.getComponentName(),
+ entry.getUserId(this),
+ null,
+ true,
+ false
+ ));
layout.setOnLongClickListener(view -> {
int[] location = new int[2];
});
}
+ if(runningAppsOnly) {
+ ImageView runningAppIndicator = convertView.findViewById(R.id.running_app_indicator);
+ if(entry.getLastTimeUsed() > 0) {
+ runningAppIndicator.setVisibility(View.VISIBLE);
+ runningAppIndicator.setColorFilter(U.getAccentColor(this));
+ } else
+ runningAppIndicator.setVisibility(View.GONE);
+ }
+
return convertView;
}
editor.putBoolean("button_home", true);
editor.putBoolean("button_recents", true);
editor.putBoolean("auto_hide_navbar", true);
+ editor.putBoolean("shortcut_icon", false);
editor.putBoolean("bliss_os_prefs", true);
editor.apply();
}
.putString("window_size", "phone_size")
.putBoolean("full_length", true)
.putBoolean("dashboard", true)
+ .putBoolean("shortcut_icon", false)
.putBoolean("android_x86_prefs", true)
.apply();
}
android:scaleX="-1"
android:visibility="gone"
tools:visibility="visible" />
+
+ <ImageView
+ android:id="@+id/running_app_indicator"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="bottom|center"
+ android:layout_marginBottom="2dp"
+ android:src="@drawable/running_app_indicator"
+ android:visibility="gone"
+ tools:visibility="visible"/>
</FrameLayout>