From 18 Jan, 2021 0:00 UTC: All services will be temporary unavailable for maintenance

Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

frameworks-base: Commit

frameworks/base


Commit MetaInfo

Revision2b9f9a9d55d9b2bce26b45a4f89763821fa8620d (tree)
Time2020-06-01 17:04:24
AuthorMauro Rossi <issor.oruam@gmai...>
CommiterChih-Wei Huang

Log Message

ResolverActivity: use hardware rendering for Intent Resolver dialog (q-x86)

Workaround to avoid graphic glitches with gbm_gralloc happening
when launcher needs to be selected at first boot

Suggested by Franco Catrin for issues affecting software rendering path:
https://github.com/android-rpi/device_brcm_rpi3/issues/49

(q-x86) Resolved conflict due to changes in q-x86 branch

Change Summary

Incremental Difference

--- a/core/java/com/android/internal/app/ResolverActivity.java
+++ b/core/java/com/android/internal/app/ResolverActivity.java
@@ -69,6 +69,7 @@ import android.view.View;
6969 import android.view.ViewGroup;
7070 import android.view.ViewGroup.LayoutParams;
7171 import android.view.WindowInsets;
72+import android.view.WindowManager;
7273 import android.widget.AbsListView;
7374 import android.widget.AdapterView;
7475 import android.widget.BaseAdapter;
@@ -290,6 +291,10 @@ public class ResolverActivity extends Activity {
290291 protected void onCreate(Bundle savedInstanceState, Intent intent,
291292 CharSequence title, int defaultTitleRes, Intent[] initialIntents,
292293 List<ResolveInfo> rList, boolean supportsAlwaysUseOption) {
294+
295+ getWindow().setFlags(WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
296+ WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
297+
293298 setTheme(R.style.Theme_DeviceDefault_Resolver);
294299 super.onCreate(savedInstanceState);
295300
Show on old repository browser