List of usage examples for android.app Notification INTENT_CATEGORY_NOTIFICATION_PREFERENCES
String INTENT_CATEGORY_NOTIFICATION_PREFERENCES
To view the source code for android.app Notification INTENT_CATEGORY_NOTIFICATION_PREFERENCES.
Click Source Link
From source file:com.google.android.apps.muzei.settings.SettingsActivity.java
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_STABLE); setContentView(R.layout.settings_activity); if (getIntent() != null && getIntent().getCategories() != null && getIntent().getCategories().contains(Notification.INTENT_CATEGORY_NOTIFICATION_PREFERENCES)) { mStartSection = START_SECTION_ADVANCED; }//from w w w . jav a 2 s. c o m // Set up UI widgets setupAppBar(); ((DrawInsetsFrameLayout) findViewById(R.id.draw_insets_frame_layout)) .setOnInsetsCallback(new DrawInsetsFrameLayout.OnInsetsCallback() { @Override public void onInsetsChanged(Rect insets) { View container = findViewById(R.id.container); ViewGroup.MarginLayoutParams lp = (ViewGroup.MarginLayoutParams) container .getLayoutParams(); lp.leftMargin = insets.left; lp.topMargin = insets.top; lp.rightMargin = insets.right; lp.bottomMargin = insets.bottom; container.setLayoutParams(lp); } }); if (mBackgroundAnimator != null) { mBackgroundAnimator.cancel(); } mBackgroundAnimator = ObjectAnimator.ofFloat(this, "backgroundOpacity", 0, 1); mBackgroundAnimator.setDuration(1000); mBackgroundAnimator.start(); }
From source file:com.google.android.apps.muzei.settings.ChooseSourceFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); Bundle bundle = new Bundle(); bundle.putString(FirebaseAnalytics.Param.ITEM_CATEGORY, "sources"); FirebaseAnalytics.getInstance(context).logEvent(FirebaseAnalytics.Event.VIEW_ITEM_LIST, bundle); mCurrentSourceLiveData = MuzeiDatabase.getInstance(context).sourceDao().getCurrentSource(); mCurrentSourceLiveData.observe(this, new Observer<com.google.android.apps.muzei.room.Source>() { @Override/*www.j av a 2s .c o m*/ public void onChanged(@Nullable final com.google.android.apps.muzei.room.Source source) { updateSelectedItem(source, true); } }); Intent intent = ((Activity) context).getIntent(); if (intent != null && intent.getCategories() != null && intent.getCategories().contains(Notification.INTENT_CATEGORY_NOTIFICATION_PREFERENCES)) { FirebaseAnalytics.getInstance(context).logEvent("notification_preferences_open", null); NotificationSettingsDialogFragment.showSettings(this); } }