frameworks/base
Revision | 2b9f9a9d55d9b2bce26b45a4f89763821fa8620d (tree) |
---|---|
Time | 2020-06-01 17:04:24 |
Author | Mauro Rossi <issor.oruam@gmai...> |
Commiter | Chih-Wei Huang |
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
@@ -69,6 +69,7 @@ import android.view.View; | ||
69 | 69 | import android.view.ViewGroup; |
70 | 70 | import android.view.ViewGroup.LayoutParams; |
71 | 71 | import android.view.WindowInsets; |
72 | +import android.view.WindowManager; | |
72 | 73 | import android.widget.AbsListView; |
73 | 74 | import android.widget.AdapterView; |
74 | 75 | import android.widget.BaseAdapter; |
@@ -290,6 +291,10 @@ public class ResolverActivity extends Activity { | ||
290 | 291 | protected void onCreate(Bundle savedInstanceState, Intent intent, |
291 | 292 | CharSequence title, int defaultTitleRes, Intent[] initialIntents, |
292 | 293 | List<ResolveInfo> rList, boolean supportsAlwaysUseOption) { |
294 | + | |
295 | + getWindow().setFlags(WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED, | |
296 | + WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED); | |
297 | + | |
293 | 298 | setTheme(R.style.Theme_DeviceDefault_Resolver); |
294 | 299 | super.onCreate(savedInstanceState); |
295 | 300 |