Java Code Examples for com.pluscubed.logcat.helper.PreferenceHelper#getExpandedByDefaultPreference()
The following examples show how to use
com.pluscubed.logcat.helper.PreferenceHelper#getExpandedByDefaultPreference() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LogcatActivity.java From java-n-IDE-for-Android with Apache License 2.0 | 6 votes |
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); log.d("onActivityResult()"); // preferences may have changed PreferenceHelper.clearCache(); mCollapsedMode = !PreferenceHelper.getExpandedByDefaultPreference(getApplicationContext()); if (requestCode == REQUEST_CODE_SETTINGS && resultCode == RESULT_OK) { onSettingsActivityResult(data); } mLogListAdapter.notifyDataSetChanged(); updateBackgroundColor(); updateUiForFilename(); }
Example 2
Source File: LogcatActivity.java From javaide with GNU General Public License v3.0 | 6 votes |
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); log.d("onActivityResult()"); // preferences may have changed PreferenceHelper.clearCache(); mCollapsedMode = !PreferenceHelper.getExpandedByDefaultPreference(getApplicationContext()); if (requestCode == REQUEST_CODE_SETTINGS && resultCode == RESULT_OK) { onSettingsActivityResult(data); } mLogListAdapter.notifyDataSetChanged(); updateBackgroundColor(); updateUiForFilename(); }
Example 3
Source File: LogcatActivity.java From matlog with GNU General Public License v3.0 | 6 votes |
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); log.d("onActivityResult()"); // preferences may have changed PreferenceHelper.clearCache(); mCollapsedMode = !PreferenceHelper.getExpandedByDefaultPreference(getApplicationContext()); if (requestCode == REQUEST_CODE_SETTINGS && resultCode == RESULT_OK) { onSettingsActivityResult(data); } mLogListAdapter.notifyDataSetChanged(); updateBackgroundColor(); updateUiForFilename(); }
Example 4
Source File: LogcatActivity.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); binding = DataBindingUtil.setContentView(this, R.layout.activity_logcat); LogLine.isScrubberEnabled = PreferenceHelper.isScrubberEnabled(this); handleShortcuts(getIntent().getStringExtra("shortcut_action")); mHandler = new Handler(Looper.getMainLooper()); binding.fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { DialogHelper.stopRecordingLog(LogcatActivity.this); } }); binding.list.setLayoutManager(new LinearLayoutManager(this)); binding.list.setItemAnimator(null); setSupportActionBar((Toolbar) findViewById(R.id.toolbar_actionbar)); setTitle(R.string.logcat); mCollapsedMode = !PreferenceHelper.getExpandedByDefaultPreference(this); log.d("initial collapsed mode is %s", mCollapsedMode); mSearchSuggestionsAdapter = new SimpleCursorAdapter(this, R.layout.list_item_dropdown, null, new String[]{"suggestion"}, new int[]{android.R.id.text1}, CursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER); setUpAdapter(); updateBackgroundColor(); runUpdatesIfNecessaryAndShowWelcomeMessage(); }
Example 5
Source File: LogcatActivity.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
public void resetDisplayedLog(String filename) { mLogListAdapter.clear(); mCurrentlyOpenLog = filename; mCollapsedMode = !PreferenceHelper.getExpandedByDefaultPreference(getApplicationContext()); addFiltersToSuggestions(); // filters are what initial populate the suggestions updateUiForFilename(); resetFilter(); }
Example 6
Source File: LogcatActivity.java From javaide with GNU General Public License v3.0 | 5 votes |
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); binding = DataBindingUtil.setContentView(this, R.layout.activity_logcat); LogLine.isScrubberEnabled = PreferenceHelper.isScrubberEnabled(this); handleShortcuts(getIntent().getStringExtra("shortcut_action")); mHandler = new Handler(Looper.getMainLooper()); binding.fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { DialogHelper.stopRecordingLog(LogcatActivity.this); } }); binding.list.setLayoutManager(new LinearLayoutManager(this)); binding.list.setItemAnimator(null); setSupportActionBar((Toolbar) findViewById(R.id.toolbar_actionbar)); setTitle(R.string.logcat); mCollapsedMode = !PreferenceHelper.getExpandedByDefaultPreference(this); log.d("initial collapsed mode is %s", mCollapsedMode); mSearchSuggestionsAdapter = new SimpleCursorAdapter(this, R.layout.list_item_dropdown, null, new String[]{"suggestion"}, new int[]{android.R.id.text1}, CursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER); setUpAdapter(); updateBackgroundColor(); runUpdatesIfNecessaryAndShowWelcomeMessage(); }
Example 7
Source File: LogcatActivity.java From javaide with GNU General Public License v3.0 | 5 votes |
public void resetDisplayedLog(String filename) { mLogListAdapter.clear(); mCurrentlyOpenLog = filename; mCollapsedMode = !PreferenceHelper.getExpandedByDefaultPreference(getApplicationContext()); addFiltersToSuggestions(); // filters are what initial populate the suggestions updateUiForFilename(); resetFilter(); }
Example 8
Source File: LogcatActivity.java From matlog with GNU General Public License v3.0 | 5 votes |
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_logcat); LogLine.isScrubberEnabled = PreferenceHelper.isScrubberEnabled(this); handleShortcuts(getIntent().getStringExtra("shortcut_action")); mHandler = new Handler(Looper.getMainLooper()); findViewById(R.id.fab).setOnClickListener(v -> DialogHelper.stopRecordingLog(LogcatActivity.this)); ((RecyclerView) findViewById(R.id.list)).setLayoutManager(new LinearLayoutManager(this)); ((RecyclerView) findViewById(R.id.list)).setItemAnimator(null); Toolbar toolbar = findViewById(R.id.toolbar_actionbar); toolbar.setOverflowIcon(AppCompatResources.getDrawable(this, R.drawable.ic_more_vert_24dp)); setSupportActionBar(toolbar); mCollapsedMode = !PreferenceHelper.getExpandedByDefaultPreference(this); mFilterPattern = PreferenceHelper.getFilterPatternPreference(this); log.d("initial collapsed mode is %s", mCollapsedMode); mSearchSuggestionsAdapter = new SimpleCursorAdapter(this, R.layout.list_item_dropdown, null, new String[]{"suggestion"}, new int[]{android.R.id.text1}, CursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER); setUpAdapter(); updateBackgroundColor(); runUpdatesIfNecessaryAndShowWelcomeMessage(); }
Example 9
Source File: LogcatActivity.java From matlog with GNU General Public License v3.0 | 5 votes |
public void resetDisplayedLog(String filename) { mLogListAdapter.clear(); mCurrentlyOpenLog = filename; mCollapsedMode = !PreferenceHelper.getExpandedByDefaultPreference(getApplicationContext()); addFiltersToSuggestions(); // filters are what initial populate the suggestions updateUiForFilename(); resetFilter(); }