Skip to content

Commit

Permalink
ResolverActivity: use hardware rendering for Intent Resolver dialog
Browse files Browse the repository at this point in the history
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:
android-rpi/device_brcm_rpi3#49
  • Loading branch information
maurossi authored and cwhuang committed Jun 1, 2020
1 parent 2373534 commit eda1dde
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/java/com/android/internal/app/ResolverActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.AbsListView;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
Expand Down Expand Up @@ -252,6 +253,10 @@ protected void onCreate(Bundle savedInstanceState, Intent intent,
protected void onCreate(Bundle savedInstanceState, Intent intent,
CharSequence title, int defaultTitleRes, Intent[] initialIntents,
List<ResolveInfo> rList, boolean supportsAlwaysUseOption) {

getWindow().setFlags(WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);

setTheme(R.style.Theme_DeviceDefault_Resolver);
super.onCreate(savedInstanceState);

Expand Down

0 comments on commit eda1dde

Please sign in to comment.